Implementing the Repository Pattern with Linq-to-Sql(codeproject.com)
submitted by
powerrush(3873) 3 years, 8 months ago
The Repository Pattern, according to Martin Fowler, provides a "layer of abstraction over the mapping layer where query construction code is concentrated", to "minimize duplicate query logic". In practice it is usually a collection of data access services, grouped in a similar way to the domain model classes.
By accessing repositories via interfaces the repository pattern helps to break the dependency between the domain model and data access code. This is invaluable for unit testing because the domain model can be isolated.
|category: Linq
|Views: 667
tags:
DesignPatterns DomainDrivenDesign LinqToSql DDD Database another
Everyones tags:
Your Tags: