예제 #1
0
 public UnitOfWork()
 {
     this.context = new EveryPayContext();
 }
 public CustomSupplierFieldRepository(EveryPayContext context)
 {
     this.context      = context;
     this.dbSet        = context.Set <SupplierField>();
     GenericRepository = new GenericRepository <SupplierField>(context);
 }
예제 #3
0
 public UnitOfWork(EveryPayContext aContext)
 {
     this.context = aContext;
 }
예제 #4
0
 public GenericRepository(EveryPayContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }