Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying from Editor uses .bim model name as model name - changing model name from project file #43

Closed
C45P3R opened this issue Apr 18, 2017 · 3 comments

Comments

@C45P3R
Copy link

C45P3R commented Apr 18, 2017

As the title says. When you use Tabular Editor to deploy it uses the model name from the .bim file.
Which is problematic in cases where that name doesn't match the model name otherwise used. EI deploying fra VS using the model name found in the project file.

Suggestions: let the user select a project file and get the name from there or let the user fill in a textbox with model name in the deploy process.

@otykier
Copy link
Collaborator

otykier commented Apr 20, 2017

Hi C45P3R. Is there a reason you don't want to change the Model name that appears in the Model.bim file? Tabular Editor exposes this field as the "Name" property on the root model object:

image

After deployment it looks like this:

image

@otykier
Copy link
Collaborator

otykier commented Apr 20, 2017

One additional note - if you want to apply a change of model name only during deployment, you can use a new feature of Tabular Editor's command-line deployment. In release 2.3, you can supply a script when deploying from the command-line.

C:\Projects\AdventureWorks\MyScript.cs:

Model.Name = "Model Test Changed Name";

When deploying, use the following command-line syntax:

start /wait TabularEditor.exe "c:\Projects\AdventureWorks\Model.bim" -S "c:\Projects\AdventureWorks\MyScript.cs" -D localhost AdventureWorks -O

Basically, this loads the Model.bim file into Tabular Editor, applies the script specified after the "-S" switch, and then deploys ("-D" switch) to the localhost server overwriting ("-O" switch) the AdventureWorks database.

For a full list of command-line syntax, run: TabularEditor.exe /?

@otykier
Copy link
Collaborator

otykier commented May 2, 2017

Closing this. Feel free to reopen if you have any further questions.

@otykier otykier closed this as completed May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants