Class ConvertPageTypeDB
Inherited Members
Namespace: EPiServer.DataAccess.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[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 |
System.Boolean | isTest | if set to |
Returns
Type | Description |
---|---|
System.Data.DataSet | A dataset with information of changes |