public static void SeedHostDb(RaymondYuSolutionDbContext 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();
        }
Exemplo n.º 2
0
 public DefaultSettingsCreator(RaymondYuSolutionDbContext context)
 {
     _context = context;
 }
 public DefaultTenantBuilder(RaymondYuSolutionDbContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 public DefaultEditionCreator(RaymondYuSolutionDbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(RaymondYuSolutionDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Exemplo n.º 6
0
 public HostRoleAndUserCreator(RaymondYuSolutionDbContext context)
 {
     _context = context;
 }
 public DefaultLanguagesCreator(RaymondYuSolutionDbContext context)
 {
     _context = context;
 }
Exemplo n.º 8
0
 public InitialHostDbBuilder(RaymondYuSolutionDbContext context)
 {
     _context = context;
 }