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