MVC4添加控制器错误

时间:2014-01-09 14:10:02

标签: entity-framework asp.net-mvc-4 controller ef-database-first

当我尝试将控制器添加到WebUI时,出现以下错误:

'DTO.Games' is not part of the specified 'DAL.GamesEntities' class, and
the 'DAL.GamesEntities' class could not be modified to add a
'DbSet<DTO.Games>' property to it. (For example, the
'Dal.GamesEntities' class might be in a compiled assembly

我在问这里之前搜索了一下,但在线解决方案都没有帮助我。我在DBFirst工作。任何可以帮助解决这个问题的代码:问你,你会收到。

提前致谢

CODE

0 个答案:

没有答案