Class ContentReferenceTypeHandler
Class that handles storage format of Content
Inheritance
System.Object
ContentReferenceTypeHandler
Implements
Namespace: EPiServer.Core.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ContentReferenceTypeHandler : Object, ITypeHandler
Constructors
ContentReferenceTypeHandler()
Declaration
public ContentReferenceTypeHandler()
Methods
FromDatabaseFormat(String, Object, Type, Type)
Returns an Content
Declaration
public object FromDatabaseFormat(string propertyName, object propertyValue, Type targetType, Type ownerType)
Parameters
Type | Name | Description |
---|---|---|
System. |
propertyName | Name of the property. |
System. |
propertyValue | The property value. |
System. |
targetType | Type of the target. |
System. |
ownerType | Type of the owner. |
Returns
Type | Description |
---|---|
System. |
A Content |
MapToDatabaseType(Type)
Returns the database type.
Declaration
public Type MapToDatabaseType(Type type)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The type. |
Returns
Type | Description |
---|---|
System. |
The type that is stored in database |
ToDatabaseFormat(String, Object, Type)
Returns the propertyValue in the database format.
Declaration
public object ToDatabaseFormat(string propertyName, object propertyValue, Type ownerType)
Parameters
Type | Name | Description |
---|---|---|
System. |
propertyName | Name of the property. |
System. |
propertyValue | The property value. |
System. |
ownerType | Type of the owner. |
Returns
Type | Description |
---|---|
System. |