A Sandcastle Documented Class Library

# ModelMapping TSource, TTarget AddMapping 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.Models
Assembly: Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public 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
  Type: System
  String
  Name of the property.
mappingRule
  Type: System
  Action
  TSource, TTarget
  The mapping rule.

See Also

#### Reference

ModelMapping
TSource, TTarget
Class
Dundas.BI.WebApi.Models Namespace