public RepositoryBase(pmtbdContext ctx) { this._ctx = ctx; dbset = ctx.Set <T>(); }
public UnitOfWork(IDataBaseFactory dbfac) { this.dbfac = dbfac; context = dbfac.DBcontext; }
public DataBaseFactory() { this.context = new pmtbdContext(); }