I have recently changed my EF data model name from X to Y. Although the name change within solution explorer is visible, however, it doesn't seem to have been registered in Visual Studio 2012. This can be diagnosed through the auto-generate context designer.cs file still identifying the model with it's old name. How can I make this name change effective or applied throughout the whole application? More clearly, how do you refactor this name to take effect globally within VS2012?
问问题
106 次
1 回答
1
You should rename the entity container name, which is in the properties of the edmx. Here's an example:
As for the namespace: this is not very clear. The namespace entry of the edmx does not seem to do anything, The project's default namespace is used for generated classes. So you should change that to change the namespace of the generated code.
于 2013-02-25T08:05:58.617 回答