public UnitOfWork(eCommAdapter_DevEntities context) { if (context == null) { throw new ArgumentNullException("context was not supplied"); } this.context = context; }
public GenericRepository(eCommAdapter_DevEntities context) { this.Context = context; this.Entities = context.Set <Entity>(); }
public UnitOfWork() { context = new eCommAdapter_DevEntities(); }