开发者

N Layered MVC Project Question

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 sh开发者_Python百科ould 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


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜