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