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