Scaffolding controller doesn't work with visual studio 2013 update 3 and 4

前端 未结 11 1515
慢半拍i
慢半拍i 2020-12-23 19:53

Im unable to scaffold a controller (MVC5 Controller with views, using Entity Framework) in Visual studio 2013 (update 3 and 4). The error message is below:

There was

11条回答
  •  醉话见心
    2020-12-23 20:27

    I solved it by adding a try/catch on the code to OnModelCreating function inside the context class. Just keep the base.OnModelCreating(modelBuilder);

    outside your try/catch

提交回复
热议问题