Beispiel #1
0
        public static void SeedHostDb(CoreDemoDbContext 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 DefaultSettingsCreator(CoreDemoDbContext context)
 {
     _context = context;
 }
 public InitialHostDbBuilder(CoreDemoDbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(CoreDemoDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public EmployeeRepository(CoreDemoDbContext coreDemoDbContext)
 {
     _context = coreDemoDbContext;
 }
Beispiel #6
0
 public DefaultTenantBuilder(CoreDemoDbContext context)
 {
     _context = context;
 }
 public DefaultLanguagesCreator(CoreDemoDbContext context)
 {
     _context = context;
 }
 public DefaultEditionCreator(CoreDemoDbContext context)
 {
     _context = context;
 }
 public HostRoleAndUserCreator(CoreDemoDbContext context)
 {
     _context = context;
 }
 public DepartmentRepository(CoreDemoDbContext coreDemoDbContext)
 {
     _context = coreDemoDbContext;
 }