Example #1
0
        public static void SeedHostDb(SunriseBankDbContext 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();
        }
Example #2
0
 public DefaultLanguagesCreator(SunriseBankDbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(SunriseBankDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Example #4
0
 public DefaultTenantBuilder(SunriseBankDbContext context)
 {
     _context = context;
 }
Example #5
0
 public DefaultSettingsCreator(SunriseBankDbContext context)
 {
     _context = context;
 }
Example #6
0
 public HostRoleAndUserCreator(SunriseBankDbContext context)
 {
     _context = context;
 }
 public DefaultEditionCreator(SunriseBankDbContext context)
 {
     _context = context;
 }
 public InitialHostDbBuilder(SunriseBankDbContext context)
 {
     _context = context;
 }