Learn Entity Framework Core: https://www.learnentityframeworkcore.com/
Entity Framework Core Tutorial: https://entityframeworkcore.com/
Entity Framework 6 Tutorial: https://entityframework.net/
Info
Version: | 1.3.1 |
Author(s): | Luke McGregor |
Last Update: | Monday, March 31, 2014 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | http://blog.staticvoid.co.nz/2011/10/staticvoid-repository-pattern-nuget.html |
NuGet Url: | https://www.nuget.org/packages/StaticVoid.Repository.EntityFramework |
Install
Install-Package StaticVoid.Repository.EntityFramework
dotnet add package StaticVoid.Repository.EntityFramework
paket add StaticVoid.Repository.EntityFramework
StaticVoid.Repository.EntityFramework Download (Unzip the "nupkg" after downloading)
Dependencies
- EntityFramework(> 6.0.0 && <= 7.0.0)
- StaticVoid.Repository(2.3.0)
Tags
More information about how to use this solution and what the package does can be found on my blog here (http://blog.staticvoid.co.nz/2011/10/staticvoid-repository-pattern-nuget.html)
Please leave comments and sugguestions in NuGet or on my blog.
The source for this project is avaliable on GitHub at https://github.com/lukemcgregor/StaticVoid.Core.Repository
This is intended for usage with an IoC repository injection pattern.
To bind to the repository in Ninject simply use:
kernel.Bind(typeof(IRepositoryDataSource<>)).To(typeof(DbContextRepositoryDataSource<>));
kernel.Bind(typeof(IRepository<>)).To(typeof(SimpleRepository<>));
this will allow you to inject repositories using the form IRepository<T> in your service implementations. Repository will have basic methods implemented for the type to allow crud.