Our Solution is currently based on Entity Framework Database First. We have a T4 Template that generates repository classes from the EDMX.
We are reviewing our planned approach for releasing changes, especially Database changes. If we continue with Database first, then we will need to separately generate scripts to change the development and other databases.
It seems that with Code First, we simply change the model and that generates scripts to change the various databases. This seems more straightforward, does not involve hand crafting scripting processes and lower risk.
So, if we make the switch, is it simply a case of:
- Moving the previously generated models from EDMX in our Entities Project to (they're all currently in one Class File) to (preferably separate) Class Files in a folder within the Entities Project
- Adjust the T4 Template to pick up the models from their new location
- No longer using the EDMX and Update from Database
- When we want to make a change to the model, simply changing the (previously but no longer generated) classes
- Using Code First Migrations to implement changes to the Test and other databases
Finally how would we see the relationships between the models? Is there a way of creating the diagram?
Thanks,
Chris