November Happy Hour will be moved to Thursday December 5th.

Class ConvertPageTypeDB

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

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

Constructors

ConvertPageTypeDB(IDatabaseExecutor, IContentRepository, ILanguageBranchRepository)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the ConvertPageTypeDB class.

Declaration
public ConvertPageTypeDB(IDatabaseExecutor databaseHandler, IContentRepository contentRepository, ILanguageBranchRepository languageBranchRepository)
Parameters
Type Name Description
IDatabaseExecutor 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)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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 virtual 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