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