Skip to content

Instantly share code, notes, and snippets.

@Deathspike
Deathspike / Context.cs
Created January 14, 2015 14:11
Quick UoW implementation using and isolating EF from consuming code
public class Context : IContext
{
public readonly ServiceEntities _entities;
#region Constructor
public Context()
{
_entities = new ServiceEntities();
}
@Deathspike
Deathspike / Context.cs
Created January 20, 2016 09:07
EF6+ UoW
public class Context : IContext
{
private readonly Entities _entities; // EF6+ DbContext
#region Constructor
static Context()
{
var ensureReference = SqlProviderServices.Instance;
}