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