コード例 #1
0
 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>();
 }
コード例 #3
0
 public BaseLogic(IIdentityService identityService, MasterplanDbContext dbContext)
 {
     this.DbSet           = dbContext.Set <TModel>();
     this.IdentityService = identityService;
 }
コード例 #4
0
 public BaseLogic(IServiceProvider serviceProvider, MasterplanDbContext dbContext)
 {
     this.DbSet           = dbContext.Set <TModel>();
     this.IdentityService = serviceProvider.GetService <IIdentityService>();
     this.QueryHelper     = new QueryHelper <TModel>();
 }