Class DefaultObjectMapper
Inheritance
DefaultObjectMapper
Assembly: Volo.Abp.ObjectMapping.dll
Syntax
public class DefaultObjectMapper : IObjectMapper, ITransientDependency
Constructors
DefaultObjectMapper(IServiceProvider, IAutoObjectMappingProvider)
Declaration
public DefaultObjectMapper(IServiceProvider serviceProvider, IAutoObjectMappingProvider autoObjectMappingProvider)
Parameters
Properties
AutoObjectMappingProvider
Declaration
public IAutoObjectMappingProvider AutoObjectMappingProvider { get; }
Property Value
MethodInfoCache
Declaration
protected static ConcurrentDictionary<string, MethodInfo> MethodInfoCache { get; }
Property Value
ServiceProvider
Declaration
protected IServiceProvider ServiceProvider { get; }
Property Value
Methods
AutoMap<TSource, TDestination>(object)
Declaration
protected virtual TDestination AutoMap<TSource, TDestination>(object source)
Parameters
Type |
Name |
Description |
object |
source |
|
Returns
Type |
Description |
TDestination |
|
Type Parameters
Name |
Description |
TSource |
|
TDestination |
|
AutoMap<TSource, TDestination>(TSource, TDestination)
Declaration
protected virtual TDestination AutoMap<TSource, TDestination>(TSource source, TDestination destination)
Parameters
Type |
Name |
Description |
TSource |
source |
|
TDestination |
destination |
|
Returns
Type |
Description |
TDestination |
|
Type Parameters
Name |
Description |
TSource |
|
TDestination |
|
IsCollectionGenericType<TSource, TDestination>(out Type, out Type, out Type)
Declaration
protected virtual bool IsCollectionGenericType<TSource, TDestination>(out Type sourceArgumentType, out Type destinationArgumentType, out Type definitionGenericType)
Parameters
Type |
Name |
Description |
Type |
sourceArgumentType |
|
Type |
destinationArgumentType |
|
Type |
definitionGenericType |
|
Returns
Type Parameters
Name |
Description |
TSource |
|
TDestination |
|
Map<TSource, TDestination>(TSource)
Declaration
public virtual TDestination Map<TSource, TDestination>(TSource source)
Parameters
Type |
Name |
Description |
TSource |
source |
|
Returns
Type |
Description |
TDestination |
|
Type Parameters
Name |
Description |
TSource |
|
TDestination |
|
Map<TSource, TDestination>(TSource, TDestination)
Declaration
public virtual TDestination Map<TSource, TDestination>(TSource source, TDestination destination)
Parameters
Type |
Name |
Description |
TSource |
source |
|
TDestination |
destination |
|
Returns
Type |
Description |
TDestination |
|
Type Parameters
Name |
Description |
TSource |
|
TDestination |
|
TryToMapCollection<TSource, TDestination>(IServiceScope, TSource, TDestination?)
Declaration
protected virtual TDestination? TryToMapCollection<TSource, TDestination>(IServiceScope serviceScope, TSource source, TDestination? destination)
Parameters
Type |
Name |
Description |
IServiceScope |
serviceScope |
|
TSource |
source |
|
TDestination |
destination |
|
Returns
Type |
Description |
TDestination |
|
Type Parameters
Name |
Description |
TSource |
|
TDestination |
|
Implements
Extension Methods