I am learning L2E and have two questions:
when I add
ADO.NET Entity Data Modelto myVS 2008 C#project. VS will add a cs file for you and the default namespace will be your project name, sayingSystemSoftwarein my case. Can I config VS to create a different namespace, such asMyCompany.SystemSoftware, for me or I have to manually change them? If VS can do it for me, please tell me how to setup the VS.how to update the Entity Data Model if my database tables changed? or I have to remove the Model and recreate again?
thanks,
-
found answers to my questions:
right click the .edmx entry and select the
Properties. In the Properties window, put your namespace intoCustom Tool Namespaceentry and rebuild, donedouble click the .edmx entry, the Updata Model Wizard will show up (like a ER diagram), right click on it, select
Update Model from Database ..., done.
0 comments:
Post a Comment