How to use Membership provider with EF Code First?

后端 未结 6 1845
独厮守ぢ
独厮守ぢ 2020-12-30 01:33

I have models based on EF Code First and I want to use them with the default MembershipProvider, but I don\'t know how to write the model correctly, so it won\'t erase all m

6条回答
  •  盖世英雄少女心
    2020-12-30 02:13

    Currently (EF 4.1 CTP) EF Code First doesn't have that option. It always drops a table if you made changes to model.

    Update:

    EF 4.1 RTM allows you to create a custom database initializer and specify creation of db objects and data seeding.

提交回复
热议问题