Beispiel #1
0
        public static void SeedHostDb(localtourDbContext context)
        {
            context.SuppressAutoSetTenantId = true;

            // Host seed
            new InitialHostDbBuilder(context).Create();

            new DefaultTenantBuilder(context).Create();
            new TenantRoleAndUserBuilder(context, 1).Create();
            new TourDataBuilder(context).Create();
            new StateDataBuilder(context).Create();
            new BookingDataBuilder(context).Create();
            new TransactionDataBuilder(context).Create();
            new ReviewDataBuilder(context).Create();
            new RequestDataBuilder(context).Create();
            new DisputeDataBuilder(context).Create();
        }
Beispiel #2
0
 public DefaultEditionCreator(localtourDbContext context)
 {
     _context = context;
 }
 public DefaultSettingsCreator(localtourDbContext context)
 {
     _context = context;
 }
Beispiel #4
0
 public DefaultTenantBuilder(localtourDbContext context)
 {
     _context = context;
 }
Beispiel #5
0
 public StateDataBuilder(localtourDbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(localtourDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
     //_unitOfWorkManager = unitOfWorkManager;
 }
Beispiel #7
0
 public DefaultLanguagesCreator(localtourDbContext context)
 {
     _context = context;
 }
 public BookingDataBuilder(localtourDbContext context)
 {
     _context = context;
 }
 public RequestDataBuilder(localtourDbContext context)
 {
     _context = context;
 }
 public TransactionDataBuilder(localtourDbContext context)
 {
     _context = context;
 }
Beispiel #11
0
 public HostRoleAndUserCreator(localtourDbContext context)
 {
     _context = context;
 }
 public InitialHostDbBuilder(localtourDbContext context)
 {
     _context = context;
 }
Beispiel #13
0
 public ReviewDataBuilder(localtourDbContext context)
 {
     _context = context;
 }
Beispiel #14
0
 public DisputeDataBuilder(localtourDbContext context)
 {
     _context = context;
 }