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