Click here to Skip to main content
13,665,826 members
Rate this:
 
Please Sign up or sign in to vote.
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 7-Dec-17 10:37am
Updated 7-Dec-17 16:42pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180810.1 | Last Updated 7 Dec 2017
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100