Couple of weeks ago, I have done two blog post on Generic Repository Pattern - Entity Framework, ASP.NET MVC and Unit Testing Triangle and How to Work With Generic Repositories on ASP.NET MVC and Unit Testing Them By Mocking and I have put up the https://github.com/tugberkugurlu/GenericRepoWebApp up on GitHub as well.
Now, the Generic Repository implementation has its own project separately: https://github.com/tugberkugurlu/GenericRepository. This is a simple project and has not much inside it but it is nice to have something static so that it can be improved along the way.
I also blogged about Entity Framework DbContext Generic Repository Implementation Is Now On Nuget and GitHub and now I have just pushed the the version 0.2.1 to Nuget live feed.
@bmccord has done all the additions and I would like to thank him for that.
Here is a brief intro about this mini project:
This little project contains a Generic Repository infrastructure for .NET applications and also a DbContext Implementation of that.
You can find more information about the main idea of this pattern and the usage on ASP.NET MVC along with Unit Testing by visiting the below links:
- Generic Repository Pattern - Entity Framework, ASP.NET MVC and Unit Testing Triangle
- How to Work With Generic Repositories on ASP.NET MVC and Unit Testing Them By Mocking
How to Install
You can directly install this little project from Nuget. There are two packages:
PM> Install-Package GenericRepository
Generic Repository Infrastructure For .NET Applications
PM> Install-Package GenericRepository.EF
Generic Repository DbContext Implementation
Under the master branch, you can find the latest stable release of this project.
Also, you can see the most up-to-date project under develop branch. Repository under develop branch is possibly the unstable version of the project.
You can also find all the releases under Tags section.
I await for your PRs :)