Exemple #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);
 }
 public Repository(UCcontext context)
 {
     this._context = context;
 }