Generic Repository Pattern in MVC3 Application with Entity Framework

added by Akhil Mittal
9/4/2013 6:58:48 AM

10 Kicks, 139 Views

Creating a Generic Repository pattern in an MVC3 application with Entity Framework is the last topic that we are about to cover in our journey of learning MVC. The article will focus on Unit of Work Pattern and Repository Pattern, and shows how to perform CRUD operations in an MVC application when there could be a possibility of creating more than one repository class. To overcome this possibility and overhead, we make a Generic Repository class for all other repositories and implement a Unit of Work pattern to provide abstraction.


0 comments