Example #1
0
        public static void SeedHostDb(SardineBlogDbContext 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(SardineBlogDbContext context)
 {
     _context = context;
 }
Example #3
0
 public DefaultSettingsCreator(SardineBlogDbContext context)
 {
     _context = context;
 }
Example #4
0
 public InitialHostDbBuilder(SardineBlogDbContext context)
 {
     _context = context;
 }
 public DefaultEditionCreator(SardineBlogDbContext context)
 {
     _context = context;
 }
 public HostRoleAndUserCreator(SardineBlogDbContext context)
 {
     _context = context;
 }
 public DefaultTenantBuilder(SardineBlogDbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(SardineBlogDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }