public static void SeedHostDb(ExampleOneDbContext 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 DefaultLanguagesCreator(ExampleOneDbContext context) { _context = context; }
public HostRoleAndUserCreator(ExampleOneDbContext context) { _context = context; }
public InitialHostDbBuilder(ExampleOneDbContext context) { _context = context; }
public DefaultEditionCreator(ExampleOneDbContext context) { _context = context; }
public DefaultTenantBuilder(ExampleOneDbContext context) { _context = context; }
public DefaultSettingsCreator(ExampleOneDbContext context) { _context = context; }
public TenantRoleAndUserBuilder(ExampleOneDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }