示例#1
0
        public static void SeedHostDb(LetsDiscDbContext 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(LetsDiscDbContext context)
 {
     _context = context;
 }
 public DefaultSettingsCreator(LetsDiscDbContext context)
 {
     _context = context;
 }
示例#4
0
 public DefaultVoteTypesCreator(LetsDiscDbContext context)
 {
     _context = context;
 }
 public InitialHostDbBuilder(LetsDiscDbContext context)
 {
     _context = context;
 }
示例#6
0
 public TenantRoleAndUserBuilder(LetsDiscDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public HostRoleAndUserCreator(LetsDiscDbContext context)
 {
     _context = context;
 }
 public DefaultLanguagesCreator(LetsDiscDbContext context)
 {
     _context = context;
 }
示例#9
0
 public DefaultTenantBuilder(LetsDiscDbContext context)
 {
     _context = context;
 }