In our data project there is a "Mapping" folder with a .tt inside of it that contains all of our .hbm.xml files. This is a VERY interesting project.
One may right-click on this .tt model and pick "Run Custom Tool" to... update the mappings on the other side of a database update??? I'm a little hazy on "Run Custom Tool" :P
Update the database by right-clicking in the .edmx in the Core project and picking "Generate Database from Model..." which will in turn allow for saving an .sql file adjacent to the .edmx file in the same folder. (Right-click in a SQL file in Visual Studio and pick "Execute SQL" to run the script.)
No comments:
Post a Comment