public BlockingPlanLogic(BookingOrderLogic bookingOrderLogic, BookingOrderDetailLogic bookingOrderDetailLogic, BlockingPlanWorkScheduleLogic blockingPlanWorkScheduleLogic, WeeklyPlanLogic weeklyPlanLogic, IIdentityService identityService, MasterplanDbContext dbContext) : base(identityService, dbContext) { this.BlockingPlanWorkScheduleLogic = blockingPlanWorkScheduleLogic; this.BookingOrderLogic = bookingOrderLogic; this.DbContext = dbContext; this.BookingOrderDetailLogic = bookingOrderDetailLogic; this.WeeklyPlanLogic = weeklyPlanLogic; _DbSet = dbContext.Set <BookingOrderDetail>(); _blockingPlans = dbContext.Set <BlockingPlan>(); }
public BookingOrderDetailLogic(IIdentityService identityService, MasterplanDbContext dbContext, BookingOrderDetail bookingOrderDetail) : base(identityService, dbContext) { _dbContext = dbContext; BookingOrderDetail = bookingOrderDetail; _bookingOrder = _dbContext.Set <BookingOrder>(); }
public BaseLogic(IIdentityService identityService, MasterplanDbContext dbContext) { this.DbSet = dbContext.Set <TModel>(); this.IdentityService = identityService; }
public BaseLogic(IServiceProvider serviceProvider, MasterplanDbContext dbContext) { this.DbSet = dbContext.Set <TModel>(); this.IdentityService = serviceProvider.GetService <IIdentityService>(); this.QueryHelper = new QueryHelper <TModel>(); }