public static void SeedHostDb(YoyoCmsTemplateDbContext 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 static void SeedHostDb(YoyoCmsTemplateDbContext context) { context.SuppressAutoSetTenantId = true; // 初始化宿主的种子数据 new InitialHostDbBuilder(context).Create(); // 初始化default租户的种子数据 new DefaultTenantBuilder(context).Create(); new TenantRoleAndUserBuilder(context, 1).Create(); new DefaultSettingsBuilder(context, 1).Create(); new DefaultBlogAndPostBuilder(context, 1).Create(); }
public HostRoleAndUserCreator(YoyoCmsTemplateDbContext context) { _context = context; }
public DefaultBlogAndPostBuilder(YoyoCmsTemplateDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public InitialHostDbBuilder(YoyoCmsTemplateDbContext context) { _context = context; }
public DropdownCreator(YoyoCmsTemplateDbContext context) { _context = context; }
public DefaultSettingsCreator(YoyoCmsTemplateDbContext context) { _context = context; }
public DefaultTenantBuilder(YoyoCmsTemplateDbContext context) { _context = context; }
public TenantRoleAndUserBuilder(YoyoCmsTemplateDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public DefaultSettingsBuilder(YoyoCmsTemplateDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public DefaultEditionCreator(YoyoCmsTemplateDbContext context) { _context = context; }
public DefaultLanguagesCreator(YoyoCmsTemplateDbContext context) { _context = context; }
public TestOrganizationUnitsBuilder(YoyoCmsTemplateDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }