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