public UnitOfWork() { this._context = new DataEntities(); }
public UnitOfWork(string connection) { this._context = new DataEntities(connection); }
public Repository(IUnitOfWork uow) { context = uow.Context as DataEntities; this.dbSet = context.Set <T>(); }