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

Class ContentDataAttributeScanningAssigner

Scans attributes on a ContentData type, and it's properties to assign values to an ContentTypeModel instence, and it's properties.

Inheritance
System.Object
ContentDataAttributeScanningAssigner
Namespace: EPiServer.DataAbstraction.RuntimeModel.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class ContentDataAttributeScanningAssigner : Object, IContentTypeModelAssigner

Constructors

ContentDataAttributeScanningAssigner()

Declaration
public ContentDataAttributeScanningAssigner()

ContentDataAttributeScanningAssigner(IContentTypeBaseResolver)

Declaration
public ContentDataAttributeScanningAssigner(IContentTypeBaseResolver contentTypeBaseResolver)
Parameters
Type Name Description
IContentTypeBaseResolver contentTypeBaseResolver

Fields

ValidBackingTypeToPropertyTypeMappings

Declaration
protected static readonly Dictionary<Type, Type> ValidBackingTypeToPropertyTypeMappings
Field Value
Type Description
System.Collections.Generic.Dictionary<System.Type, System.Type>

Methods

AssignValues(ContentTypeModel)

Assigns values to contentTypeModel from attributes defined on ModelType

Declaration
public virtual void AssignValues(ContentTypeModel contentTypeModel)
Parameters
Type Name Description
ContentTypeModel contentTypeModel

The content type model, which will be populated with values.

AssignValuesToPropertyDefinition(PropertyDefinitionModel, PropertyInfo, ContentTypeModel)

Assigns values to propertyDefinitionModel from attributes defined on property

Declaration
public virtual void AssignValuesToPropertyDefinition(PropertyDefinitionModel propertyDefinitionModel, PropertyInfo property, ContentTypeModel parentModel)
Parameters
Type Name Description
PropertyDefinitionModel propertyDefinitionModel

The property definition model, which will be populated with values.

System.Reflection.PropertyInfo property

The property to use when scanning for attributes.

ContentTypeModel parentModel

The content type model, in which the property contains.

Implements

Extension Methods