EF 4.1 Code First and Existing Database and .NET Membership

后端 未结 6 1473
南旧
南旧 2021-02-01 22:59

I have a database called ApplicationName_Development running on SQL Server 2008 R2 Developer edition on my development box.

I added .NET membership tables to the databas

6条回答
  •  被撕碎了的回忆
    2021-02-01 23:52

    I found the easiest way without playing with anything else was the following.

    I ran the application first time with DropAndRecreatedatabase always in the Initilizer.

    This created my database for the first time.

    Following this I changed this to DropCreateDatabaseIfModelChanges.

提交回复
热议问题