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