SaaS CMS has officially launched! Learn more now.

Class MetaDataPropertyResolver

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Maps a the meta fields of a meta class to property definition models.

Inheritance
System.Object
MetaDataPropertyResolver
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: 11.8.3
Syntax
public class MetaDataPropertyResolver

Constructors

MetaDataPropertyResolver(MetaDataPropertyMapper)

Initializes a new instance of the MetaDataPropertyResolver class.

Declaration
public MetaDataPropertyResolver(MetaDataPropertyMapper metaDataPropertyMapper)
Parameters
Type Name Description
MetaDataPropertyMapper metaDataPropertyMapper

The meta data property mapper.

Properties

MetaDataContext

Context used when loading MetaClass.

Declaration
public virtual MetaDataContext MetaDataContext { get; set; }
Property Value
Type Description
MetaDataContext

Methods

ConfigureProperties(ICollection<PropertyDefinitionModel>)

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Configures the properties by adding default UI hints

Declaration
public void ConfigureProperties(ICollection<PropertyDefinitionModel> propertyDefinitionModels)
Parameters
Type Name Description
System.Collections.Generic.ICollection<EPiServer.DataAbstraction.RuntimeModel.PropertyDefinitionModel> propertyDefinitionModels

The property definition models.

ExtractProperties(IEnumerable<MetaField>)

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Extracts information about the meta fields of a meta class as EPiServer.DataAbstraction.RuntimeModel.PropertyDefinitionModel instances, if they can be mapped to property types.

Declaration
public IEnumerable<PropertyDefinitionModel> ExtractProperties(IEnumerable<MetaField> metaFields)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<MetaField> metaFields

The meta fields.

Returns
Type Description
System.Collections.Generic.IEnumerable<EPiServer.DataAbstraction.RuntimeModel.PropertyDefinitionModel>

ExtractProperties(Int32, IEnumerable<String>)

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Extracts information about the meta fields of a meta class as EPiServer.DataAbstraction.RuntimeModel.PropertyDefinitionModel instances, if they can be mapped to property types.

Declaration
public IEnumerable<PropertyDefinitionModel> ExtractProperties(int metaClassId, IEnumerable<string> propertiesToSkip)
Parameters
Type Name Description
System.Int32 metaClassId

The meta class id.

System.Collections.Generic.IEnumerable<System.String> propertiesToSkip

Names of properties to skip (e.g. because they are already included as a result of scanning).

Returns
Type Description
System.Collections.Generic.IEnumerable<EPiServer.DataAbstraction.RuntimeModel.PropertyDefinitionModel>