Table of Contents

Class PageRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public class PageRepository : IPageRepository
Inheritance
PageRepository
Implements

Constructors

PageRepository(IDbContextFactory<TenantDBContext>, IPageModuleRepository, IPermissionRepository, ISettingRepository)

public PageRepository(IDbContextFactory<TenantDBContext> dbContextFactory, IPageModuleRepository pageModules, IPermissionRepository permissions, ISettingRepository settings)

Parameters

dbContextFactory IDbContextFactory<TenantDBContext>
pageModules IPageModuleRepository
permissions IPermissionRepository
settings ISettingRepository

Methods

AddPage(Page)

public Page AddPage(Page page)

Parameters

page Page

Returns

Page

DeletePage(int)

public void DeletePage(int pageId)

Parameters

pageId int

GetPage(int)

public Page GetPage(int pageId)

Parameters

pageId int

Returns

Page

GetPage(int, bool)

public Page GetPage(int pageId, bool tracking)

Parameters

pageId int
tracking bool

Returns

Page

GetPage(string, int)

public Page GetPage(string path, int siteId)

Parameters

path string
siteId int

Returns

Page

GetPages(int)

public IEnumerable<Page> GetPages(int siteId)

Parameters

siteId int

Returns

IEnumerable<Page>

UpdatePage(Page)

public Page UpdatePage(Page page)

Parameters

page Page

Returns

Page