public BookingOrderFacade(IServiceProvider serviceProvider, MasterplanDbContext dbContext) { this.DbContext = dbContext; this.DbSet = this.DbContext.Set <BookingOrder>(); this.IdentityService = serviceProvider.GetService <IIdentityService>(); this.BookingOrderLogic = serviceProvider.GetService <BookingOrderLogic>(); }
public BookingOrderFacade(IServiceProvider serviceProvider, MasterplanDbContext dbContext) { this.DbContext = dbContext; this.DbSet = this.DbContext.Set <BookingOrder>(); this.BookingOrderLogic = serviceProvider.GetService <BookingOrderLogic>(); this.BookingOrderDetailLogic = serviceProvider.GetService <BookingOrderDetailLogic>(); this.BlockingPlanLogic = serviceProvider.GetService <BlockingPlanLogic>(); }
public BlockingPlanFacade(IServiceProvider serviceProvider, IIdentityService identityService, BlockingPlanWorkScheduleLogic blockingPlanWorkScheduleLogic, MasterplanDbContext dbContext) : base(identityService, dbContext) { this.DbContext = dbContext; this.DbSet = this.DbContext.Set <BlockingPlan>(); this._BookingOrderDbSet = this.DbContext.Set <BookingOrder>(); this._WeeklyPlanItemDbSet = this.DbContext.Set <WeeklyPlanItem>(); this._BPWorkSchedulesDbSet = this.DbContext.Set <BlockingPlanWorkSchedule>(); this.BlockingPlanLogic = serviceProvider.GetService <BlockingPlanLogic>(); this.BookingOrderLogic = serviceProvider.GetService <BookingOrderLogic>(); this._weeklyPlanLogic = serviceProvider.GetService <WeeklyPlanLogic>(); this._BlockingPlanWorkScheduleLogic = blockingPlanWorkScheduleLogic; }