c# - MVC5 using scaffolding for classes from other namespaces (referenced DLL) -


is possible use mvc5 scaffolding create new controller view, using entityframework if models , dbcontext classes not in same namespace.

i have defined models , dbcontext in 2 separate libraries (project.models , project.dataaccess) , when entering add controller menu dropdowns model , datacontext don't contain classes i'm trying use.

i have of course referenced them in project.

just make sure compile solution , go mvc project , add reference model , dbcontext projects , should enable see model , dbcontext classes while creating controllers or views via scaffolding.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -