public static void SeedHostDb(MyAbpProjectDbContext 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 DefaultManagerBuilder(context).Create();
        }
Beispiel #2
0
 public DefaultLanguagesCreator(MyAbpProjectDbContext context)
 {
     _context = context;
 }
 public InitialHostDbBuilder(MyAbpProjectDbContext context)
 {
     _context = context;
 }
 public DefaultTenantBuilder(MyAbpProjectDbContext context)
 {
     _context = context;
 }
Beispiel #5
0
 public TenantRoleAndUserBuilder(MyAbpProjectDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Beispiel #6
0
 public DefaultRechargeFieldCreateor(MyAbpProjectDbContext context)
 {
     _context = context;
 }
Beispiel #7
0
 public DefaultManagerBuilder(MyAbpProjectDbContext context)
 {
     _context = context;
 }
 public DefaultEditionsCreator(MyAbpProjectDbContext context)
 {
     _context = context;
 }
Beispiel #9
0
 public HostRoleAndUserCreator(MyAbpProjectDbContext context)
 {
     _context = context;
 }
Beispiel #10
0
 public DefaultTenantCreator(MyAbpProjectDbContext context)
 {
     _context = context;
 }
 public DefaultSettingsCreator(MyAbpProjectDbContext context)
 {
     _context = context;
 }
 public DefaultPermissionDefinedCreator(MyAbpProjectDbContext context)
 {
     _context = context;
 }