c# - Can't scaffold controller in Visual Studio 2013 U4 -


when try scaffold controller view in asp.net mvc 5 project mvc 5 controller views, using entity framework menu item model school (nola.core.models.education) , db context applicationdbcontext (data) error:

a configuration type 'nola.core.models.users.applicationuser' has been added. reference existing configuration use entity<t>() or complextype<t>() methods. 

all relations of models writen entity framework fluent api , apply in methodonmodelcreatingof db context this

modelbuilder.configurations.add(new applicationuserconfiguration()); 

when remove 1 configuration item error on next configuration. if comment configurations, error says ef can't find relations models.

i use visual studio ultimate 2013 update 4 updated nuget packages. can project here https://github.com/beta-tank/nola/tree/develop in develop branch.

p.s. have tried many methods scaffolding controller doesn't work visual studio 2013 update 2 (idbset, web.config, reinstall packages , etc) nothing helps.

check scaffolding controller doesn't work visual studio 2013 update 2

changing context use idbset instead of dbset have sorted me. solution introduce problem when scaffold controller after that, action methods using findasync method on doesn't exist , you'll have compile time errors. change findasync methods firstordefaultasync methods , you'll go.


Comments