Updating the database schema at run time using the Entity Framework

I am developing an application with EF4.0. Between releases, the database schema may change (for example, an added column, an added table ...).

Is there a way to commit these changes to the customer database when starting a new version? I am thinking of a function like CreateDatabase ().

+4
source share
1 answer

Your installation procedure should do two things:

  • Run the script to update the database
  • Install new program files

To create a script database, use the tools in visual studio, see http://www.sqlskills.com/BLOGS/KIMBERLY/post/Data-Dude-moving-into-lower-priced-VS-Editions-in-VS- 2010-excellent! .Aspx

+1
source

Source: https://habr.com/ru/post/1314321/


All Articles