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
Post a Comment