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!

enter image description here

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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -