当我尝试支架控制器与视图ASP.NET MVC 5与模型School (Nola.Core.Models.Education)
和DB上下文ApplicationDbContext (Data)
MVC 5 Controller with views, using Entity Framework
菜单项项目中,我得到错误:不能在Visual Studio脚手架控制器2013 U4
A configuration for type 'Nola.Core.Models.Users.ApplicationUser' has already been added. To reference the existing configuration use the Entity<T>() or ComplexType<T>() methods.
所有模型关系writen与Entity Framework Fluent API
和数据库方面的方法OnModelCreating
适用这样
modelBuilder.Configurations.Add(new ApplicationUserConfiguration());
当我删除一个配置项,然后得到一个配置错误。如果评论所有配置,那么得到错误说EF
找不到某些型号的关系。
我使用Visual Studio Ultimate 2013 Update 4和所有更新的NuGet软件包。你可以从https://github.com/beta-tank/nola/tree/Develop这里得到Develop
分支的项目。
P.S.我已经尝试了很多方法从Scaffolding controller doesn't work with visual studio 2013 update 2(IDbSet,Web.config,重新安装软件包等),但没有任何帮助。