Class SiteRepository
- Namespace
- Oqtane.Repository
- Assembly
- Oqtane.Server.dll
public class SiteRepository : ISiteRepository
- Inheritance
-
SiteRepository
- Implements
Constructors
SiteRepository(IDbContextFactory<TenantDBContext>, IRoleRepository, IProfileRepository, IFolderRepository, IPageRepository, IModuleRepository, IPageModuleRepository, IModuleDefinitionRepository, IThemeRepository, IServiceProvider, IConfigurationRoot, IServerStateManager, ILogManager)
public SiteRepository(IDbContextFactory<TenantDBContext> factory, IRoleRepository roleRepository, IProfileRepository profileRepository, IFolderRepository folderRepository, IPageRepository pageRepository, IModuleRepository moduleRepository, IPageModuleRepository pageModuleRepository, IModuleDefinitionRepository moduleDefinitionRepository, IThemeRepository themeRepository, IServiceProvider serviceProvider, IConfigurationRoot config, IServerStateManager serverState, ILogManager logger)
Parameters
factory
IDbContextFactory<TenantDBContext>roleRepository
IRoleRepositoryprofileRepository
IProfileRepositoryfolderRepository
IFolderRepositorypageRepository
IPageRepositorymoduleRepository
IModuleRepositorypageModuleRepository
IPageModuleRepositorymoduleDefinitionRepository
IModuleDefinitionRepositorythemeRepository
IThemeRepositoryserviceProvider
IServiceProviderconfig
IConfigurationRootserverState
IServerStateManagerlogger
ILogManager
Methods
AddSite(Site)
public Site AddSite(Site site)
Parameters
site
Site
Returns
CreatePages(Site, List<PageTemplate>, Alias)
public void CreatePages(Site site, List<PageTemplate> pageTemplates, Alias alias)
Parameters
site
SitepageTemplates
List<PageTemplate>alias
Alias
DeleteSite(int)
public void DeleteSite(int siteId)
Parameters
siteId
int
GetSite(int)
public Site GetSite(int siteId)
Parameters
siteId
int
Returns
GetSite(int, bool)
public Site GetSite(int siteId, bool tracking)
Parameters
Returns
GetSites()
public IEnumerable<Site> GetSites()
Returns
InitializeSite(Alias)
public void InitializeSite(Alias alias)
Parameters
alias
Alias
UpdateSite(Site)
public Site UpdateSite(Site site)
Parameters
site
Site