Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my project I am using the Entiy Framework to reference a database.
 
What happens is that through a script, you were made or can make changes to the database, such as for the size of the fields.

What I have tried:

I want to know if there is a way to make my project, update those changes at the level of the EF, in runtime, that is to say that in the future this type of modifications can be made in the database and there is no need to modify the code, if not that it is updated atomically.
Posted
Updated 7-Dec-17 16:42pm

1 solution

Check out Running & Scripting Migrations from Code | romiller.com[^].

There's precious little documentation on this, so you're going to have to do a bunch of research yourself. Start with the DbMigration class and start reading.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900