entity framework - ASP.NET MVC, Layers, Models, Repositories etc -
i have questions after reading article called layered application guidelines
(http://msdn.microsoft.com/en-us/library/ee658109.aspx).
for example, have asp.net mvc application. in application have entities (models), repositories, unitofwork , dbcontext. , views , controllers well.
how split them layers according article above?
as far understand, views , (maybe) controllers reside in presentation layer. entities (models) in business layer , repositories, unitofwork , dbcontext in data layer.
am right or mistaken? i'm very-very unsure it.
thanks in advance!
views , controllers should reside in presentation layer. models should reside in presentation layer. models reflect view model used presentation only. entities should represent data , should not sent view. in presentation later, models should populated entities. correct in dbcontext , unitofwork should in data layer.
Comments
Post a Comment