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