EF Data migrations won't detect changes when adding new migration

后端 未结 16 1931
情话喂你
情话喂你 2020-12-09 14:53

I am using Entity Framework 5.0 Data migrations along with code first. When i add a new field to my model and execute the following command in the package manager console.

16条回答
  •  误落风尘
    2020-12-09 15:26

    It seems that i managed to solve the problem by moving the models and the context class to another project.

    I still have no idea why this happened, and this solution is really no solution at all :(

提交回复
热议问题