Entity Framework Automatic Migrations Existing Database

后端 未结 3 1385
孤独总比滥情好
孤独总比滥情好 2021-01-13 20:51

I am building an ASP.Net MVC4 web application with Entity Framework 5. I had to use an existing sql server database but also wanted to use Code First, so I followed this tut

3条回答
  •  走了就别回头了
    2021-01-13 21:38

    Folks

    The answer to my problem above was helped by this article http://christesene.com/entity-framework-4-3-code-first-with-automatic-migrations/

    I had to delete my previous initial migration class, and re-create it.

提交回复
热议问题