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