Base item model converter
This class provides methods to simplify reading values from Sitecore items that are set on Data Exchange Framework model objects.
|
Type |
|
Example
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:
The SupportedIds attribute is used for validation purposes. It ensures the converter can only be used with items based on the specified templates.