Show / Hide Table of Contents

Class ExtensibleObjectMapper

Inheritance
System.Object
ExtensibleObjectMapper
Namespace: Volo.Abp.ObjectExtending
Assembly: Volo.Abp.ObjectExtending.dll
Syntax
public static class ExtensibleObjectMapper : object

Methods

CanMapProperty(Type, Type, String, Nullable<MappingPropertyDefinitionChecks>, String[])

Declaration
public static bool CanMapProperty(Type sourceType, Type destinationType, string propertyName, MappingPropertyDefinitionChecks? definitionChecks = null, string[] ignoredProperties = null)
Parameters
Type Name Description
Type sourceType
Type destinationType
System.String propertyName
System.Nullable<MappingPropertyDefinitionChecks> definitionChecks
System.String[] ignoredProperties
Returns
Type Description
System.Boolean

CanMapProperty<TSource, TDestination>(String, Nullable<MappingPropertyDefinitionChecks>, String[])

Declaration
public static bool CanMapProperty<TSource, TDestination>(string propertyName, MappingPropertyDefinitionChecks? definitionChecks = null, string[] ignoredProperties = null)
Parameters
Type Name Description
System.String propertyName
System.Nullable<MappingPropertyDefinitionChecks> definitionChecks
System.String[] ignoredProperties
Returns
Type Description
System.Boolean
Type Parameters
Name Description
TSource
TDestination

MapExtraPropertiesTo(Type, Type, Dictionary<String, Object>, Dictionary<String, Object>, Nullable<MappingPropertyDefinitionChecks>, String[])

Copies extra properties from the sourceDictionary object to the destinationDictionary object.

Checks property definitions (over the ObjectExtensionManager) based on the definitionChecks preference.

Declaration
public static void MapExtraPropertiesTo(Type sourceType, Type destinationType, Dictionary<string, object> sourceDictionary, Dictionary<string, object> destinationDictionary, MappingPropertyDefinitionChecks? definitionChecks = null, string[] ignoredProperties = null)
Parameters
Type Name Description
Type sourceType

Source type (for definition check)

Type destinationType

Destination class type (for definition check)

Dictionary<System.String, System.Object> sourceDictionary

The source dictionary object

Dictionary<System.String, System.Object> destinationDictionary

The destination dictionary object

System.Nullable<MappingPropertyDefinitionChecks> definitionChecks

Controls which properties to map.

System.String[] ignoredProperties

Used to ignore some properties

MapExtraPropertiesTo<TSource, TDestination>(TSource, TDestination, Nullable<MappingPropertyDefinitionChecks>, String[])

Copies extra properties from the source object to the destination object.

Checks property definitions (over the ObjectExtensionManager) based on the definitionChecks preference.

Declaration
public static void MapExtraPropertiesTo<TSource, TDestination>(TSource source, TDestination destination, MappingPropertyDefinitionChecks? definitionChecks = null, string[] ignoredProperties = null)

    where TSource : IHasExtraProperties where TDestination : IHasExtraProperties
Parameters
Type Name Description
TSource source

The source object

TDestination destination

The destination object

System.Nullable<MappingPropertyDefinitionChecks> definitionChecks

Controls which properties to map.

System.String[] ignoredProperties

Used to ignore some properties

Type Parameters
Name Description
TSource

Source class type

TDestination

Destination class type

MapExtraPropertiesTo<TSource, TDestination>(Dictionary<String, Object>, Dictionary<String, Object>, Nullable<MappingPropertyDefinitionChecks>, String[])

Copies extra properties from the sourceDictionary object to the destinationDictionary object.

Checks property definitions (over the ObjectExtensionManager) based on the definitionChecks preference.

Declaration
public static void MapExtraPropertiesTo<TSource, TDestination>(Dictionary<string, object> sourceDictionary, Dictionary<string, object> destinationDictionary, MappingPropertyDefinitionChecks? definitionChecks = null, string[] ignoredProperties = null)

    where TSource : IHasExtraProperties where TDestination : IHasExtraProperties
Parameters
Type Name Description
Dictionary<System.String, System.Object> sourceDictionary

The source dictionary object

Dictionary<System.String, System.Object> destinationDictionary

The destination dictionary object

System.Nullable<MappingPropertyDefinitionChecks> definitionChecks

Controls which properties to map.

System.String[] ignoredProperties

Used to ignore some properties

Type Parameters
Name Description
TSource

Source class type (for definition check)

TDestination

Destination class type (for definition check)

Back to top Powered by Volosoft