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;
 }
示例#6
0
 public TestEditionsBuilder(CoreAngularDemoDbContext context)
 {
     _context = context;
 }
 public InitialPeopleAndPhoneCreator(CoreAngularDemoDbContext context)
 {
     _context = context;
 }
示例#8
0
 public DefaultLanguagesCreator(CoreAngularDemoDbContext context)
 {
     _context = context;
 }
示例#9
0
 public TestSubscriptionPaymentBuilder(CoreAngularDemoDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public DefaultEditionCreator(CoreAngularDemoDbContext context)
 {
     _context = context;
 }
示例#11
0
 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;
 }
示例#14
0
 public TestOrganizationUnitsBuilder(CoreAngularDemoDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }