Interface IObjectMapper<TSource, TDestination>
Maps an object to another. Implement this interface to override object to object mapping for specific types.
Namespace: Volo.Abp.ObjectMapping
Assembly: Volo.Abp.ObjectMapping.dll
Syntax
public interface IObjectMapper<in TSource, TDestination>
Type Parameters
| Name | Description |
|---|---|
| TSource | |
| TDestination |
Methods
Map(TSource)
Converts an object to another. Creates a new object of
Declaration
TDestination Map(TSource source)
Parameters
| Type | Name | Description |
|---|---|---|
| TSource | source | Source object |
Returns
| Type | Description |
|---|---|
| TDestination |
Map(TSource, TDestination)
Execute a mapping from the source object to the existing destination object
Declaration
TDestination Map(TSource source, TDestination destination)
Parameters
| Type | Name | Description |
|---|---|---|
| TSource | source | Source object |
| TDestination | destination | Destination object |
Returns
| Type | Description |
|---|---|
| TDestination | Returns the same |