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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -