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