Try our conversational search powered by Generative AI!

Class ContentTypesDB

Help to get page type directly from tblapage.

Inheritance
System.Object
ContentTypesDB
Namespace: EPiServer.MirroringService.DataAccess
Assembly: EPiServer.Enterprise.dll
Version: 8.11.0
Syntax
[ServiceConfiguration(typeof(ContentTypesDB))]
public class ContentTypesDB : DataAccessBase
Remarks

If the tblpage and contentpath has been changed this class should be modified .

Constructors

ContentTypesDB(IDatabaseHandler, IContentTypeRepository)

Initializes a new instance of the PageTypesDB class.

Declaration
public ContentTypesDB(IDatabaseHandler databaseHandler, IContentTypeRepository contentTypeRepository)
Parameters
Type Name Description
IDatabaseHandler databaseHandler

The database handler.

IContentTypeRepository contentTypeRepository

The content type repository.

Methods

GetDescendantContentTypes(ContentReference)

Gets the descendant page types.

Declaration
public IList<ContentType> GetDescendantContentTypes(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

The content link.

Returns
Type Description
System.Collections.Generic.IList<ContentType>

Extension Methods