Пример #1
0
        public static void SeedHostDb(ForwarderDbContext 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();
        }
Пример #2
0
 public DefaultLanguagesCreator(ForwarderDbContext context)
 {
     _context = context;
 }
Пример #3
0
 public TenantRoleAndUserBuilder(ForwarderDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Пример #4
0
 public DefaultSettingsCreator(ForwarderDbContext context)
 {
     _context = context;
 }
Пример #5
0
 public InitialHostDbBuilder(ForwarderDbContext context)
 {
     _context = context;
 }
Пример #6
0
 public DefaultEditionCreator(ForwarderDbContext context)
 {
     _context = context;
 }
Пример #7
0
 public HostRoleAndUserCreator(ForwarderDbContext context)
 {
     _context = context;
 }
Пример #8
0
 public DefaultTenantBuilder(ForwarderDbContext context)
 {
     _context = context;
 }