C# Класс Kooboo.Commerce.Api.Local.Mapping.DefaultObjectMapper

Наследование: IObjectMapper
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
GetMapper Func

Открытые методы

Метод Описание
Map ( object source, object target, Type sourceType, Type targetType, string prefix, MappingContext context ) : object

Защищенные методы

Метод Описание
GetMapperOrDefault ( Type sourceType, Type targetType ) : IObjectMapper
IsComplexPropertyIncluded ( PropertyInfo property, string propertyPath, MappingContext context ) : bool
IsComplexType ( Type type ) : bool
MapComplexProperty ( PropertyInfo targetProperty, PropertyInfo sourceProperty, object sourcePropValue, object source, object target, Type sourceType, Type targetType, string propertyPath, MappingContext context ) : void
MapProperty ( PropertyInfo targetProperty, object source, object target, Type sourceType, Type targetType, string propertyPath, MappingContext context ) : void
MapSimpleProperty ( PropertyInfo targetProperty, PropertyInfo sourceProperty, object sourcePropValue, object source, object target, Type sourceType, Type targetType, string propertyPath, MappingContext context ) : void

Приватные методы

Метод Описание
ResolveSourcePropertyValue ( PropertyInfo property, object source, MappingContext context ) : object

Описание методов

GetMapperOrDefault() защищенный Метод

protected GetMapperOrDefault ( Type sourceType, Type targetType ) : IObjectMapper
sourceType System.Type
targetType System.Type
Результат IObjectMapper

IsComplexPropertyIncluded() защищенный Метод

protected IsComplexPropertyIncluded ( PropertyInfo property, string propertyPath, MappingContext context ) : bool
property System.Reflection.PropertyInfo
propertyPath string
context MappingContext
Результат bool

IsComplexType() защищенный Метод

protected IsComplexType ( Type type ) : bool
type System.Type
Результат bool

Map() публичный Метод

public Map ( object source, object target, Type sourceType, Type targetType, string prefix, MappingContext context ) : object
source object
target object
sourceType System.Type
targetType System.Type
prefix string
context MappingContext
Результат object

MapComplexProperty() защищенный Метод

protected MapComplexProperty ( PropertyInfo targetProperty, PropertyInfo sourceProperty, object sourcePropValue, object source, object target, Type sourceType, Type targetType, string propertyPath, MappingContext context ) : void
targetProperty System.Reflection.PropertyInfo
sourceProperty System.Reflection.PropertyInfo
sourcePropValue object
source object
target object
sourceType System.Type
targetType System.Type
propertyPath string
context MappingContext
Результат void

MapProperty() защищенный Метод

protected MapProperty ( PropertyInfo targetProperty, object source, object target, Type sourceType, Type targetType, string propertyPath, MappingContext context ) : void
targetProperty System.Reflection.PropertyInfo
source object
target object
sourceType System.Type
targetType System.Type
propertyPath string
context MappingContext
Результат void

MapSimpleProperty() защищенный Метод

protected MapSimpleProperty ( PropertyInfo targetProperty, PropertyInfo sourceProperty, object sourcePropValue, object source, object target, Type sourceType, Type targetType, string propertyPath, MappingContext context ) : void
targetProperty System.Reflection.PropertyInfo
sourceProperty System.Reflection.PropertyInfo
sourcePropValue object
source object
target object
sourceType System.Type
targetType System.Type
propertyPath string
context MappingContext
Результат void

Описание свойств

GetMapper публичное свойство

public Func GetMapper
Результат Func