开发者

Entity Framework Feature CTP5 Append Model?

I am using EF Feature CTP5 and need to be able to just append changes 开发者_开发问答to the database structure when making changes to the model or my class objects?

Is there a way to do this or does it need to drop and recreate the database every time you make a change to the class objects?


No, as of CTP5 only DropCreateDatabaseAlways and DropCreateDatabaseIfModelChanges strategies are supported which essentially recreate your DB every time.

That said, EF team is actively working on a Code First Database Evolution (aka Migrations) feature which is exactly what you are looking for: Altering DB instead of dropping it. We likely get this feature in the RTM this year.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜