コード例 #1
0
 public UnitOfWork(CarServiceContext context, IMapper mapper)
 {
     _context                = context;
     this.Users              = new UserRepository(context, mapper);
     this.Reservations       = new ReservationRepository(context, mapper);
     this.Worksheets         = new WorksheetRepository(context, mapper);
     this.ReservationTypes   = new ReservationTypeRepository(context, mapper);
     this.Materials          = new MaterialRepository(context, mapper);
     this.WorksheetMaterials = new WorksheetMaterialRepository(context, mapper);
 }
コード例 #2
0
 public OrderService(CarServiceContext db)
 {
     _db = db;
 }
コード例 #3
0
 public CustomerService(CarServiceContext db)
 {
     _db = db;
 }