- Namespace
- Oqtane.Repository
- Assembly
- Oqtane.Server.dll
public class PageRepository : IPageRepository
- Inheritance
-
PageRepository
- Implements
-
Constructors
public PageRepository(IDbContextFactory<TenantDBContext> dbContextFactory, IPageModuleRepository pageModules, IPermissionRepository permissions, ISettingRepository settings)
Parameters
dbContextFactory
IDbContextFactory<TenantDBContext>
pageModules
IPageModuleRepository
permissions
IPermissionRepository
settings
ISettingRepository
Methods
public Page AddPage(Page page)
Parameters
page
Page
Returns
- Page
public void DeletePage(int pageId)
Parameters
pageId
int
public Page GetPage(int pageId)
Parameters
pageId
int
Returns
- Page
public Page GetPage(int pageId, bool tracking)
Parameters
pageId
int
tracking
bool
Returns
- Page
public Page GetPage(string path, int siteId)
Parameters
path
string
siteId
int
Returns
- Page
public IEnumerable<Page> GetPages(int siteId)
Parameters
siteId
int
Returns
- IEnumerable<Page>
public Page UpdatePage(Page page)
Parameters
page
Page
Returns
- Page