ModelMappingTSource, TTargetAddMapping Method |
Adds a mapping rule for a property. The mapping rule is a call back method that will be called
in order to do a custom transfer of data from the source over to the target property.
Namespace: Dundas.BI.WebApi.ModelsAssembly: Dundas.BI.WebApiCore (in Dundas.BI.WebApiCore.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntaxpublic void AddMapping(
string propertyName,
Action<TSource, TTarget> mappingRule
)
Public Sub AddMapping (
propertyName As String,
mappingRule As Action(Of TSource, TTarget)
)
public:
void AddMapping(
String^ propertyName,
Action<TSource, TTarget>^ mappingRule
)
member AddMapping :
propertyName : string *
mappingRule : Action<'TSource, 'TTarget> -> unit Parameters
- propertyName String
- Name of the property.
- mappingRule ActionTSource, TTarget
- The mapping rule.
See Also