Entity Framework - Invalid Column Name '*_ID"

后端 未结 15 1605
长发绾君心
长发绾君心 2020-11-29 21:30

I\'ve narrowed this down to some issue between Code First and Database first EF, but I\'m not sure how to fix it. I\'ll try to be as clear as I can, but I honestly am missin

15条回答
  •  既然无缘
    2020-11-29 21:51

    For me the problem is that I had the table mapped in my app twice - once via Code First, once via Database First.

    Removing either one solves the problem in my case.

提交回复
热议问题