Interface IObjectMapper
Defines a simple interface to automatically map objects.
Namespace: Volo.Abp.ObjectMapping
Assembly: Volo.Abp.ObjectMapping.dll
Syntax
public interface IObjectMapper
Properties
AutoObjectMappingProvider
Gets the underlying IAutoObjectMappingProvider object that is used for auto object mapping.
Declaration
IAutoObjectMappingProvider AutoObjectMappingProvider { get; }
Property Value
Type | Description |
---|---|
IAutoObjectMappingProvider |
Methods
Map<TSource, TDestination>(TSource)
Converts an object to another. Creates a new object of
Declaration
TDestination Map<TSource, TDestination>(TSource source)
Parameters
Type | Name | Description |
---|---|---|
TSource | source | Source object |
Returns
Type | Description |
---|---|
TDestination |
Type Parameters
Name | Description |
---|---|
TSource | Type of the source object |
TDestination | Type of the destination object |
Map<TSource, TDestination>(TSource, TDestination)
Execute a mapping from the source object to the existing destination object
Declaration
TDestination Map<TSource, TDestination>(TSource source, TDestination destination)
Parameters
Type | Name | Description |
---|---|---|
TSource | source | Source object |
TDestination | destination | Destination object |
Returns
Type | Description |
---|---|
TDestination | Returns the same |
Type Parameters
Name | Description |
---|---|
TSource | Source type |
TDestination | Destination type |