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