Cannot create controller with Entity framework - Unable to retrieve metadata

前端 未结 7 1987
慢半拍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:32

    In my case, but using VS 2017, this occurred when I had all my model classes defined within a single .cs file. Once I separated each class out into its own file the generation process completed correctly.

提交回复
热议问题