I’m using Code First notation of Entity Framework, and got some problem after changing model.
I don’t use initializer’s so my db isn’t recreated. And that’s good, cuz there is already to much info.
I’d be very grateful for some advices and better manuals of the best practice how to change db with no loose of current data.
Thanks.
I’m using Code First notation of Entity Framework, and got some problem after changing
Share
If can you do it you should upgrade to Entity Framework 4.3.
It introduces among other new features: the New Code First Migrations Feature.
Otherwise you can manually create and run change scripts or you can use a thrid party migration framework like fluentmigrator or you can write your own.