Upgrade from Entity Framework 5 to 6

后端 未结 4 2052
轻奢々
轻奢々 2020-12-04 08:42

After upgrading our project from using Entity Framework 5 to Entity Framework 6 (though NuGets update function) i get the following error on my generated Entities class:

4条回答
  •  自闭症患者
    2020-12-04 09:42

    I know this is late to respond to the question but.

    This work For me by following the below steps.

    Copy the code form the existing abc.tt file. Delete the abc.tt file. Copy all the code again into ABC.tt file. After copy code just save the file and build the solution it will regenerate the complete .cs file as well

提交回复
热议问题