public static void SeedHostDb(CoreAngularDemoDbContext context) { context.SuppressAutoSetTenantId = true; //Host seed new InitialHostDbBuilder(context).Create(); //Default tenant seed (in host database). new DefaultTenantBuilder(context).Create(); new TenantRoleAndUserBuilder(context, 1).Create(); }
public DefaultSettingsCreator(CoreAngularDemoDbContext context) { _context = context; }
public DefaultTenantBuilder(CoreAngularDemoDbContext context) { _context = context; }
public TestDataBuilder(CoreAngularDemoDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public InitialHostDbBuilder(CoreAngularDemoDbContext context) { _context = context; }
public TestEditionsBuilder(CoreAngularDemoDbContext context) { _context = context; }
public InitialPeopleAndPhoneCreator(CoreAngularDemoDbContext context) { _context = context; }
public DefaultLanguagesCreator(CoreAngularDemoDbContext context) { _context = context; }
public TestSubscriptionPaymentBuilder(CoreAngularDemoDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public DefaultEditionCreator(CoreAngularDemoDbContext context) { _context = context; }
public HostRoleAndUserCreator(CoreAngularDemoDbContext context) { _context = context; }
private void CreatePaidPayment(CoreAngularDemoDbContext context, SubscriptionPayment subscriptionPayment) { subscriptionPayment.SetAsPaid(); context.SubscriptionPayments.Add(subscriptionPayment); }
public TenantRoleAndUserBuilder(CoreAngularDemoDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public TestOrganizationUnitsBuilder(CoreAngularDemoDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }