Class ContactDataMapper
- Namespace
- CMS.ContactManagement
- Assembly
- CMS.ContactManagement.dll
Maps data to provided ContactInfo.
public class ContactDataMapper : IContactDataMapper
- Inheritance
-
objectContactDataMapper
- Implements
- Extension Methods
Constructors
ContactDataMapper(string, bool)
Creates an instance of ContactDataMapper.
public ContactDataMapper(string dataClassName, bool allowOverwrite)
Parameters
dataClassNamestringData container class name.
allowOverwriteboolIndicates if the already filled ContactInfo properties should be overwritten. Otherwise only empty properties are filled.
Methods
Map(ISimpleDataContainer, ContactInfo)
Maps data to provided contact.
public bool Map(ISimpleDataContainer data, ContactInfo contact)
Parameters
dataISimpleDataContainerSource data.
contactContactInfoContact.
Returns
- bool
Returns
trueif there were any properties to map.
Remarks
The modification is based on mapping defined for external data source.