Reputation: 8783
As you know,There are Models, Views and Controllers in a same project in ASP.NET MVC. But I want separate Models from others and create my models in a separate project (like ClassLibrary project or whatever is possible).
How can I do it?
(I use EF6 and ASP.MVC 4,5 and Visual studio 2013)
Upvotes: 2
Views: 5507
Reputation: 2355
Create a class library for Models and add it's reference in MVC project. It should work
Upvotes: 9