I'm curious about the first approach to the model. I want to create a new database using a modeler in VS2012. New features of the fashion designer, such as coloring and separation of sections of models, are wonderful. We hope that it will be advisable for the model designer to re-create a new database.
I would like to follow these steps ...
Using the model builder, visually design and click the model to create the source database and table
add data to table
make changes to the table in the model designer (for example, add a field)
click database changes (i.e. update the database)
DON'T LOSE MY DATA FROM STEP 2. Also, just to eliminate any confusion ... I mentioned that I DO NOT WANT TO LOSE DATA?
Please tell me this obvious need (i.e. the need to develop tables and their fields without losing data, starting from scratch) was not lost on the FIVE EF iteration.
This page on EF ( http://msdn.microsoft.com/en-us/data/ee712907.aspx ) suggests that the developer has the same choice between the first coding and the first simulation. For me, the embedded video on the page creates a similar impression.
It would be nice if there was a simple menu option or even better, but only a way to set "automatic pressing on DB" when changing the model. Thus, each time you make changes and press the SAVE button, the "Update Database?" Dialog box appears.
I see that using the code there is a migration option first. I can't seem to find the same for the model. And I donβt understand why this was impossible ... because the code that I would write in code-first really exists - it was created when generating the code of the first model.
I hold my fingers in the hope that someone will have a simple solution, maybe something that I just missed, and all this incoherent / venting is in vain. :-)
Donna source share