Exemple #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();
        }
Exemple #2
0
 public InitialMaklumatAsasCreator(InfoMuridDbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(InfoMuridDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public DefaultEditionCreator(InfoMuridDbContext context)
 {
     _context = context;
 }
Exemple #5
0
 public DefaultSettingsCreator(InfoMuridDbContext context)
 {
     _context = context;
 }
Exemple #6
0
 public DefaultLanguagesCreator(InfoMuridDbContext context)
 {
     _context = context;
 }
Exemple #7
0
 public DefaultTenantBuilder(InfoMuridDbContext context)
 {
     _context = context;
 }
Exemple #8
0
 public InitialHostDbBuilder(InfoMuridDbContext context)
 {
     _context = context;
 }
Exemple #9
0
 public HostRoleAndUserCreator(InfoMuridDbContext context)
 {
     _context = context;
 }