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

Class ConvertPageTypeDB

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

Constructors

ConvertPageTypeDB(IDatabaseExecutor, IContentRepository, ILanguageBranchRepository, IPropertyDefinitionRepository)

Initializes a new instance of the ConvertPageTypeDB class.

Declaration
public ConvertPageTypeDB(IDatabaseExecutor databaseHandler, IContentRepository contentRepository, ILanguageBranchRepository languageBranchRepository, IPropertyDefinitionRepository propertyDefinitionRepository)
Parameters
Type Name Description
IDatabaseExecutor databaseHandler
IContentRepository contentRepository
ILanguageBranchRepository languageBranchRepository
IPropertyDefinitionRepository propertyDefinitionRepository

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 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