public UnitOfWork(ESDatabaseContext context) { if (context == null) { throw new ArgumentNullException("Context was not supplied"); } _context = context; }
public OrderRepository(ESDatabaseContext context) : base(context) { }
public ItemRepository(ESDatabaseContext context) : base(context) { }
public CartRepository(ESDatabaseContext context) : base(context) { }
public Repository(ESDatabaseContext context) { //_objectSet = context.CreateObjectSet<T>(); _dbSet = context.Set <T>(); }