Entity Framework - Invalid Column Name '*_ID"

后端 未结 15 1609
长发绾君心
长发绾君心 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 22:11

    Check to see if you have any ICollections.

    What I have figured out is when you have an ICollection that references a table and there is no column that it can figure out, it creates one for you to try to make the connection between the tables. This specifically happens with ICollection and has driven me "batty" trying to figure it out.

提交回复
热议问题