I’ve published an early draft of Nethouse UoW for EntityFramework 6.1+.
The code is available on Github: https://github.com/Nethouse/Nethouse.UnitOfWork
The library comes with a small interface for unit of work, which can be implemented ontop of your existing
There are no methods that needs to be implemented manually, all methods are already provided by the default
DbContext base class.
The library also contains a
TestDbSet<T> which can be used for testing.
The benefit of this is that if you implement repository classes or other code that needs access to the datacontext, you can now pass the
By doing so, we now enable the code to run any Linq queries against our in memory test implementation.¨