x19
x19

Reputation: 8783

Creating Models as a separate project in ASP.NET MVC

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

Answers (1)

malkam
malkam

Reputation: 2355

Create a class library for Models and add it's reference in MVC project. It should work

Upvotes: 9

Related Questions