Try our conversational search powered by Generative AI!

Interface IContentTypeModelAssigner

Assign values to a ContentTypeModel.

Namespace: EPiServer.DataAbstraction.RuntimeModel
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public interface IContentTypeModelAssigner
Examples

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

Methods

AssignValues(ContentTypeModel)

Assigns values to contentTypeModel.

Declaration
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 values from attributes.

AssignValuesToPropertyDefinition(PropertyDefinitionModel, PropertyInfo, ContentTypeModel)

Assigns values to propertyDefinitionModel from attributes defined on property

Declaration
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 values from attributes.

Extension Methods

See Also