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