Ejemplo n.º 1
0
        public static void SeedHostDb(InfoMuridDbContext 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();

            new InitialMaklumatAsasCreator(context).Create();
        }
Ejemplo n.º 2
0
 public InitialMaklumatAsasCreator(InfoMuridDbContext context)
 {
     _context = context;
 }
Ejemplo n.º 3
0
 public TenantRoleAndUserBuilder(InfoMuridDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Ejemplo n.º 4
0
 public DefaultEditionCreator(InfoMuridDbContext context)
 {
     _context = context;
 }
Ejemplo n.º 5
0
 public DefaultSettingsCreator(InfoMuridDbContext context)
 {
     _context = context;
 }
Ejemplo n.º 6
0
 public DefaultLanguagesCreator(InfoMuridDbContext context)
 {
     _context = context;
 }
Ejemplo n.º 7
0
 public DefaultTenantBuilder(InfoMuridDbContext context)
 {
     _context = context;
 }
Ejemplo n.º 8
0
 public InitialHostDbBuilder(InfoMuridDbContext context)
 {
     _context = context;
 }
Ejemplo n.º 9
0
 public HostRoleAndUserCreator(InfoMuridDbContext context)
 {
     _context = context;
 }