EF CodeFirst: Either the parameter @objname is ambiguous or the claimed @objtype (COLUMN) is wrong

前端 未结 10 2236
Happy的楠姐
Happy的楠姐 2020-12-13 23:35

I\'ve a table named EducationTypes and an Entity named EducationType, I renamed one of entity properties, now I\'m frequently getting Either

10条回答
  •  攒了一身酷
    2020-12-14 00:11

    Actually this error also happens when you just deleted the database, and your context does not realize that your database is not there.

    I recreated the database, and now the error was resolved.

    P.S. make sure you check database is still there when you try to run the update-database

提交回复
热议问题