matthewschrager / repository Goto Github PK
View Code? Open in Web Editor NEWA generic implementation of the repository pattern in C#.
A generic implementation of the repository pattern in C#.
Hi,
I was wondering if there is a reason that you require the AutoMapper version 3.0.0. For all other references you've set SpecificVersion
to False
. Is it possible not to lock on a specific version or does Repository need 3.0.0?
Cheers,
scho
The CRUD operations should be overridable or trigger external methods such as OnUpdating
, OnUpdated
etc.
<Deleted>
It would be really nice to have this as a NuGet package.
Hey. What about if the DbContext injected into my services has a Transient or Scoped lifetime and then, that DbContext is used in the EFRepository?
Hi,
I've started to play around with the EFRepository. I got some strange errors on my Asp.Net MVC page that it couldn't load the System.Data.Entity.dll.
In the end I found out, that EFRepository doesn't support EF6 and it tries to use EF5. I'm not so familiar with the nuget stuff, but maybe you add that the EntityFramework dependency must not be 6 or newer. Also stating it somewhere in the readme would be awesome.
I my project, I finally ended up fixing the few issues with EF6 by myself (basically all due to namespace changes). If you want I can send you a pull request with my changes and you can release a new version of Repository.EntityFramework.
Anyway, I'm planning on using you library a lot in the future, so far it looks really promising!
Cheers,
scho
I am using this for the purpose of Repository.EntityFramework. The nuget package has not been updated in a while and I was hoping that you could update the packages and re-publish? It has been a few years since the last version and I don't want to update the libraries and break things.
Also, why does this nuget package depend on NUnit?
When trying to update an item, the repository is throwing an exception (as below) when the SaveChanges() method is called.
{"Could not load file or assembly 'KellermanSoftware.Compare-Net-Objects, Version=3.1.0.0, Culture=neutral, PublicKeyToken=d970ace04cc85217' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"KellermanSoftware.Compare-Net-Objects, Version=3.1.0.0, Culture=neutral, PublicKeyToken=d970ace04cc85217"}
SqlBulkCopy with EntityDataReader.cs does not work on method GetOrdinal(string).
Hi I'm just looking at the EFRepository, and I see you throw an exception if the DbContext doesn't have a parameterless constructor, I'm wondering since you can do it all at compile time using the 'new' constraint, example:
public class Repository where TContext : DbContext, new()
{
}
Check it out: http://goo.gl/Q78AP
Saving items into the InMemoryRepository and then trying to access them seems to always return null.
Plus, the Items object on the repository is always empty too.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.