0
kicks
Generic Repository
The purpose behind the repository pattern is to provide a layer of abstraction between your domain and data layer. For smaller projects, this typically isn't needed. However, larger projects can really benefit from a broker that specifically handles the back and forth between the two layers. With repositories your domain objects aren't burdened with infrastructure details and can therefore better focus on domain-specific behavior.