ModelMappingTSource, TTarget Class

Maps properties between two object of different types - model and data transfer object.
Inheritance Hierarchy
SystemObject
  Dundas.BI.WebApi.ModelsModelMappingTSource, TTarget

Namespace:  Dundas.BI.WebApi.Models
Assembly:  Dundas.BI.WebApiCore (in Dundas.BI.WebApiCore.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
public class ModelMapping<TSource, TTarget>

Type Parameters

TSource
The type of the source.
TTarget
The type of the target.

The ModelMappingTSource, TTarget type exposes the following members.

Methods
  NameDescription
Public methodAddMapping
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.
Public methodCopyTo
Copy the properties from the source object over the provided target object.
Public methodGetObject
Creates the target object and maps all public properties.
Top
See Also