예제 #1
0
        public static void SeedHostDb(ElementAdminDbContext 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 DefaultEditionCreator(ElementAdminDbContext context)
 {
     _context = context;
 }
 public InitialHostDbBuilder(ElementAdminDbContext context)
 {
     _context = context;
 }
 public MenuRepositoriy_Test()
 {
     _menuRepository = Resolve <IRepository <Menu, long> >();
     _baseRepository = Resolve <ElementAdminDbContext>();
 }
예제 #5
0
 public DefaultLanguagesCreator(ElementAdminDbContext context)
 {
     _context = context;
 }
예제 #6
0
 public HostRoleAndUserCreator(ElementAdminDbContext context)
 {
     _context = context;
 }
예제 #7
0
 public TenantRoleAndUserBuilder(ElementAdminDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public DefaultSettingsCreator(ElementAdminDbContext context)
 {
     _context = context;
 }
예제 #9
0
 public DefaultTenantBuilder(ElementAdminDbContext context)
 {
     _context = context;
 }