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