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