Esempio n. 1
0
        public static void SeedHostDb(ABPUnity01DbContext 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();
        }
Esempio n. 2
0
 public TenantRoleAndUserBuilder(ABPUnity01DbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public InitialHostDbBuilder(ABPUnity01DbContext context)
 {
     _context = context;
 }
 public DefaultTenantBuilder(ABPUnity01DbContext context)
 {
     _context = context;
 }
 public DefaultSettingsCreator(ABPUnity01DbContext context)
 {
     _context = context;
 }
 public DefaultLanguagesCreator(ABPUnity01DbContext context)
 {
     _context = context;
 }
Esempio n. 7
0
 public HostRoleAndUserCreator(ABPUnity01DbContext context)
 {
     _context = context;
 }
Esempio n. 8
0
 public DefaultEditionCreator(ABPUnity01DbContext context)
 {
     _context = context;
 }