Skip to content
An example of how one might implement the repository pattern, in C#.
C# Other
  1. C# 99.8%
  2. Other 0.2%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
RepositoryExample.Data
RepositoryExample.Entity
RepositoryExample.Resources
RepositoryExample.Service
RepositoryExample.Test
RepositoryExample.Web
.gitattributes
.gitignore
README.md
RepositoryExample.sln

README.md

This solution demonstrates my implementation of the repository pattern, in C#. In this implementation, I am using Entity Framework code-first approach, LocalDb, LINQ and Fluent Validation. I keep inversion of control in mind throughout the solution. I use a service layer as well as a unit of work object.

The ASP.NET MVC4 project demonstrates usage of view models, inversion of control, dependency injection and finally a basic method of localization.

You can’t perform that action at this time.