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

Class MetaDataTypeResolver

Maps a System.Type to a MetaDataType.

Inheritance
System.Object
MetaDataTypeResolver
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Catalog.Provider.Construction
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2
Syntax
public class MetaDataTypeResolver

Constructors

MetaDataTypeResolver()

Declaration
public MetaDataTypeResolver()

Properties

Boolean

PropertyData type for a boolean.

Declaration
protected virtual MetaDataType Boolean { get; }
Property Value
Type Description
MetaDataType

Byte

PropertyData type for a byte

Declaration
protected virtual MetaDataType Byte { get; }
Property Value
Type Description
MetaDataType

ContentArea

PropertyData type for an ContentArea.

Declaration
protected virtual MetaDataType ContentArea { get; }
Property Value
Type Description
MetaDataType

ContentReference

PropertyData type for an ContentReference.

Declaration
protected virtual MetaDataType ContentReference { get; }
Property Value
Type Description
MetaDataType

DateTime

PropertyData type for a date time.

Declaration
protected virtual MetaDataType DateTime { get; }
Property Value
Type Description
MetaDataType

Decimal

PropertyData type for a decimal.

Declaration
protected virtual MetaDataType Decimal { get; }
Property Value
Type Description
MetaDataType

Double

PropertyData type for a double.

Declaration
protected virtual MetaDataType Double { get; }
Property Value
Type Description
MetaDataType

Float

PropertyData type for a float.

Declaration
protected virtual MetaDataType Float { get; }
Property Value
Type Description
MetaDataType

Int16

PropertyData type for an int16.

Declaration
protected virtual MetaDataType Int16 { get; }
Property Value
Type Description
MetaDataType

Int32

PropertyData type for an int32.

Declaration
protected virtual MetaDataType Int32 { get; }
Property Value
Type Description
MetaDataType

Int64

PropertyData type for an int64.

Declaration
protected virtual MetaDataType Int64 { get; }
Property Value
Type Description
MetaDataType

LinkItemCollection

PropertyData type for an LinkItemCollection.

Declaration
protected virtual MetaDataType LinkItemCollection { get; }
Property Value
Type Description
MetaDataType

PageReference

PropertyData type for an PageReference.

Declaration
protected virtual MetaDataType PageReference { get; }
Property Value
Type Description
MetaDataType

Single

PropertyData type for a single.

Declaration
protected virtual MetaDataType Single { get; }
Property Value
Type Description
MetaDataType

String

PropertyData type for a string

Declaration
protected virtual MetaDataType String { get; }
Property Value
Type Description
MetaDataType

Url

PropertyData type for an URL.

Declaration
protected virtual MetaDataType Url { get; }
Property Value
Type Description
MetaDataType

XhtmlString

PropertyData type for an XhtmlString.

Declaration
protected virtual MetaDataType XhtmlString { get; }
Property Value
Type Description
MetaDataType

Methods

GetMetaDataType(PropertyDataType)

Gets the mapped MetaDataType from a EPiServer.Core.PropertyDataType

Declaration
public virtual MetaDataType GetMetaDataType(PropertyDataType propertyDataType)
Parameters
Type Name Description
EPiServer.Core.PropertyDataType propertyDataType

The property data type.

Returns
Type Description
MetaDataType

GetMetaDataType(Type)

Gets the mapped MetaDataType from a System.Type

Declaration
public virtual MetaDataType GetMetaDataType(Type type)
Parameters
Type Name Description
System.Type type

The type.

Returns
Type Description
MetaDataType

The MetaDataType representing the type

GetMetaDataTypeFromBackingType(Type)

Gets the mapped MetaDataType from a System.Type representing the backing type of a property

Declaration
public virtual MetaDataType? GetMetaDataTypeFromBackingType(Type backingType)
Parameters
Type Name Description
System.Type backingType

The backing type

Returns
Type Description
System.Nullable<MetaDataType>

The MetaDataType representing the backing type