Exemplo n.º 1
0
        public static void SeedHostDb(MyAbpLearnDbContext 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();
        }
Exemplo n.º 2
0
 public DefaultLanguagesCreator(MyAbpLearnDbContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public TenantRoleAndUserBuilder(MyAbpLearnDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public DefaultTenantBuilder(MyAbpLearnDbContext context)
 {
     _context = context;
 }
Exemplo n.º 5
0
 public InitialHostDbBuilder(MyAbpLearnDbContext context)
 {
     _context = context;
 }
 public HostRoleAndUserCreator(MyAbpLearnDbContext context)
 {
     _context = context;
 }
 public DefaultSettingsCreator(MyAbpLearnDbContext context)
 {
     _context = context;
 }