示例#1
0
 public UnitOfWork(UCcontext context)
 {
     this._context           = context;
     this.CustomerRepository = new Repository <Customer>(this._context);
     this.VendorRepository   = new Repository <Vendor>(this._context);
     this.AreaRepository     = new Repository <Area>(this._context);
     this.ServiceRepository  = new Repository <Service>(this._context);
 }
示例#2
0
 public Repository(UCcontext context)
 {
     this._context = context;
 }