Try our conversational search powered by Generative AI!

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
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.DataAbstraction.RuntimeModel
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
[ServiceConfiguration(typeof(IContentTypeModelAssigner))]
public class ContentDataAttributeScanningAssigner : IContentTypeModelAssigner
Examples

The following code example demonstrate how to use ContentDataAttributeScanningAssigner to Assign valued from attributes.

Constructors

ContentDataAttributeScanningAssigner()

Declaration
public ContentDataAttributeScanningAssigner()

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.

Examples

The following code example demonstrate how to use ContentDataAttributeScanningAssigner to Assign valued from attributes.

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.

Examples

The following code example demonstrate how to use ContentDataAttributeScanningAssigner to Assign valued from attributes.

Implements

Extension Methods