Beispiel #1
0
        public static void SeedHostDb(QADbContext 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();
        }
Beispiel #2
0
 public HostRoleAndUserCreator(QADbContext context)
 {
     _context = context;
 }
 public EmailRepository(
     QADbContext dbContext) : base(
         dbContext: dbContext)
 {
 }
Beispiel #4
0
 public InitialHostDbBuilder(QADbContext context)
 {
     _context = context;
 }
Beispiel #5
0
 public TenantRoleAndUserBuilder(QADbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Beispiel #6
0
 public DefaultTenantBuilder(QADbContext context)
 {
     _context = context;
 }
Beispiel #7
0
 public QuestionRepository(
     QADbContext dbContext) : base(
         dbContext: dbContext)
 {
 }
Beispiel #8
0
 public DefaultLanguagesCreator(QADbContext context)
 {
     _context = context;
 }
Beispiel #9
0
 public AnswerRepository(
     QADbContext dbContext) : base(
         dbContext: dbContext)
 {
 }
Beispiel #10
0
 public DefaultEditionCreator(QADbContext context)
 {
     _context = context;
 }
Beispiel #11
0
 public DefaultSettingsCreator(QADbContext context)
 {
     _context = context;
 }