Пример #1
0
        public static void SeedHostDb(Vishnu_MyProjectDbContext 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();
        }
 public DefaultEditionCreator(Vishnu_MyProjectDbContext context)
 {
     _context = context;
 }
Пример #3
0
 public DefaultLanguagesCreator(Vishnu_MyProjectDbContext context)
 {
     _context = context;
 }
 public HostRoleAndUserCreator(Vishnu_MyProjectDbContext context)
 {
     _context = context;
 }
 public DefaultSettingsCreator(Vishnu_MyProjectDbContext context)
 {
     _context = context;
 }
 public DefaultTenantBuilder(Vishnu_MyProjectDbContext context)
 {
     _context = context;
 }
Пример #7
0
 public InitialHostDbBuilder(Vishnu_MyProjectDbContext context)
 {
     _context = context;
 }
Пример #8
0
 public TenantRoleAndUserBuilder(Vishnu_MyProjectDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }