Entity Framework update without data loss when using the model for the first time

I often saw this question here, however, all solutions involve the use of EF code. I used the model first with a constructor to compose objects and their relationships. I would like to update my server schema without losing data.

Since I am new to this, I do not know what is the best solution to achieve this. Can I manually write SQL code to create new tables in my production scheme, than use a database - first to import .edmxinto Visual Studio? Will this solution work?

Or can I generate the first view of my code .edmxand then use this migration process?

Share some knowledge.

Thank you all

+4
source share

All Articles