ASP.NET MVC Application Design -


ok, have been taking in sorts of great information mvc, ef4, repository pattern, uow, service layers, etc , going attempt put together.

my question is, how should these separated?

i thinking projects this:

1) application - mvc app
2) repository layer 3) entities - ef4/partial entity classes

any suggestions great!!

thanks, sam

here's 1 example of how structure application:

  1. domain models (primary poco objects)
  2. repositories (implementation of data access technology depending on project requirements : ef, nhibernate, linq xml, remote web service calls, ...)
  3. service (business operations aggregating multiple crud operations business operation exposed domain objects)
  4. asp.net mvc application (controllers, views, view models, mappers between domain objects , view models)

this layers represent physical separation (assemblies) or logical separation same assembly.


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -