资 源 简 介
Important: Project moved to GitHub
Project was moved to github:
https://github.com/besnik/generic-repository
Intro
GenericRepository project is generic implementation of Repository pattern.
For detailed discussion please see Introduction.
Lightweight
It is lightweight thin layer between domain model and data mappers (e.g. ORMs like NHibernate, Linq2Sql or Entity Framework). The goal is to avoid recreating same repositories over and over again in all projects where repository pattern is used. Designed with respect to DDD (domain driven design). Implements Filter pattern and best used with factory and/or Service locator patter (DI/IoC). I used the name specification, but it turned out to be confusing of other design pattern, so from now on I call it filters.
Example of usage:
```
var customer = new Customer { Name = "Peter Bondra", Age = 37 };
var specificationLocator = this.IoC.Resolve