Cannot create controller with Entity framework - Unable to retrieve metadata

前端 未结 7 1972
慢半拍i
慢半拍i 2021-02-12 20:35

I\'m using VS2013

When I try to create an \"MVC 5 Controller with views using entity Framework\" I get the following error:

the         


        
7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-12 21:28

    For me, I have to "run custom tool" by right click on model.tt and model.context.tt files, then error got resolved.

提交回复
热议问题