Cannot create controller with Entity framework - Unable to retrieve metadata

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

    If you trying to create a Odata controller

    Go to DbContext class and then check whether

    public System.Data.Entity.DbSet YourModel{ get; set; }

    Available ior not

    If yes .. remove it and then retry

提交回复
热议问题