Exemple #1
0
 public BookingQueryHandler(DreamlinesContext dbContext)
 {
     AssertArguments.NotNull(dbContext, nameof(dbContext));
     Context = dbContext;
 }
 public void Initialize(DreamlinesContext db)
 {
     db.Ships.AddRange(GetShips());
     db.Bookings.AddRange(GetBookings());
     db.SaveChanges();
 }
 public SalesUnitQueryHandler(DreamlinesContext context)
 {
     AssertArguments.NotNull(context, nameof(context));
     Context = context;
 }