Example #1
0
        public static void SeedHostDb(PersonalEvaluationDbContext 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();
            new DefaultRoleBuilder(context, 1).Create();
            new DefaultOrganizationUnitBuilder(context, 1).Create();
        }
Example #2
0
 public DefaultSettingsCreator(PersonalEvaluationDbContext context)
 {
     _context = context;
 }
 public InitialHostDbBuilder(PersonalEvaluationDbContext context)
 {
     _context = context;
 }
Example #4
0
 public DefaultEditionCreator(PersonalEvaluationDbContext context)
 {
     _context = context;
 }
 public DefaultOrganizationUnitBuilder(PersonalEvaluationDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public TenantRoleAndUserBuilder(PersonalEvaluationDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Example #7
0
 public DefaultRoleBuilder(PersonalEvaluationDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Example #8
0
 public DefaultLanguagesCreator(PersonalEvaluationDbContext context)
 {
     _context = context;
 }
Example #9
0
 public HostRoleAndUserCreator(PersonalEvaluationDbContext context)
 {
     _context = context;
 }
Example #10
0
 public DefaultTenantBuilder(PersonalEvaluationDbContext context)
 {
     _context = context;
 }
 public DefaultEvaluationAndObjectivesBuilder(PersonalEvaluationDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }