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