views:

56

answers:

2

Hello,

I am getting a bit confused about how an N Layered MVC application should look. I am thinking as standard there should be:

ASP .NET MVC Project
Service Layer
Data Access Layer (containing repositories)

I am confused as to where the entity framework model should sit (.edmx). Should it be in the Data Access Layer? Should any partial classes of the entities sit in the service layer? Should any partial classes sit with the edmx model?

Any advise on creating n layered applications is welcomed.

Thanks

A: 

See my SO answer here.

Colin Desmond
A: 

I usually put my Entity Framework edmx file in the Data Layer. I add a folder call Repositories, and put the repositories in there - AppName.Data.Repositories.

Then I have my Business Layer (Service Layer), and then my Web Project (MVC).

Martin

related questions