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