Try our conversational search powered by Generative AI!

Class ConvertPageTypeDB

Data layer for convert page type for pages functionality This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Inheritance
System.Object
ConvertPageTypeDB
Namespace: EPiServer.DataAccess
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
[ServiceConfiguration]
public class ConvertPageTypeDB : DataAccessBase

Constructors

ConvertPageTypeDB(IDatabaseHandler, IContentRepository, ILanguageBranchRepository)

Initializes a new instance of the ConvertPageTypeDB class.

Declaration
public ConvertPageTypeDB(IDatabaseHandler databaseHandler, IContentRepository contentRepository, ILanguageBranchRepository languageBranchRepository)
Parameters
Type Name Description
IDatabaseHandler databaseHandler

The database handler.

IContentRepository contentRepository

The page repository.

ILanguageBranchRepository languageBranchRepository

The language branch repository.

Methods

Convert(Int32, Int32, Int32, List<KeyValuePair<Int32, Int32>>, Boolean, Boolean)

Convert a page to a new page type This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public DataSet Convert(int pageLinkId, int fromPageTypeId, int toPageTypeId, List<KeyValuePair<int, int>> propertyTypeMap, bool recursive, bool isTest)
Parameters
Type Name Description
System.Int32 pageLinkId

The id to the page which will be converted

System.Int32 fromPageTypeId

The id of the page type to convert from

System.Int32 toPageTypeId

To id of the page type to convert to

System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.Int32, System.Int32>> propertyTypeMap

"from"-"to" mappings of properties , the mapped properties has to be on the same base form

System.Boolean recursive

if set to true the conversion will be performed for all subpages also

System.Boolean isTest

if set to true no actual conversion is made but a test to see the effect of the conversion

Returns
Type Description
System.Data.DataSet

A dataset with information of changes

Extension Methods