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:
- domain models (primary poco objects)
- repositories (implementation of data access technology depending on project requirements : ef, nhibernate, linq xml, remote web service calls, ...)
- service (business operations aggregating multiple crud operations business operation exposed domain objects)
- 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
Post a Comment