Base item model converter
Version:
This class provides methods to simplify reading values from Sitecore items that are set on Data Exchange Framework model objects.
| Type | Sitecore.DataExchange.Converters.BaseItemModelConverter<TTo>,Sitecore.DataExchange |
|---|
Example
Consider an example where you have a Sitecore template that represents a person. The template has the following fields:
| Field name | Field type |
|---|---|
| Name | Single-Line Text |
| Single-Line Text | |
| DOB | Date |
Within Data Exchange Framework you want items based on this template to be exposed using the following model:
The following class uses the base item model converter to create an instance of the preceding model from a Sitecore item based on the previous template:
Note
The SupportedIds attribute is used for validation purposes. It ensures the converter can only be used with items based on the specified templates.
If you have suggestions for improving this article, let us know!