Show / Hide Table of Contents

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 object after mapping operation

Type Parameters
Name Description
TSource

Source type

TDestination

Destination type

Extension Methods

ObjectMapperExtensions.Map(IObjectMapper, Type, Type, Object)
ObjectMapperExtensions.Map(IObjectMapper, Type, Type, Object, Object)
AbpAutoMapperObjectMapperExtensions.GetMapper(IObjectMapper)
AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft