C# Class Kooboo.Commerce.Api.Local.Mapping.DefaultObjectMapper

Inheritance: IObjectMapper
Mostra file Open project: Kooboo/Ecommerce Class Usage Examples

Public Properties

Property Type Description
GetMapper Func

Public Methods

Method Description
Map ( object source, object target, Type sourceType, Type targetType, string prefix, MappingContext context ) : object

Protected Methods

Method Description
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

Private Methods

Method Description
ResolveSourcePropertyValue ( PropertyInfo property, object source, MappingContext context ) : object

Method Details

GetMapperOrDefault() protected method

protected GetMapperOrDefault ( Type sourceType, Type targetType ) : IObjectMapper
sourceType System.Type
targetType System.Type
return IObjectMapper

IsComplexPropertyIncluded() protected method

protected IsComplexPropertyIncluded ( PropertyInfo property, string propertyPath, MappingContext context ) : bool
property System.Reflection.PropertyInfo
propertyPath string
context MappingContext
return bool

IsComplexType() protected method

protected IsComplexType ( Type type ) : bool
type System.Type
return bool

Map() public method

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
return object

MapComplexProperty() protected method

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
return void

MapProperty() protected method

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
return void

MapSimpleProperty() protected method

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
return void

Property Details

GetMapper public_oe property

public Func GetMapper
return Func