Class ExtensibleObjectMapper
Inheritance
object
ExtensibleObjectMapper
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.ObjectExtending.dll
Syntax
public static class ExtensibleObjectMapper
Methods
CanMapProperty(Type, Type, string, MappingPropertyDefinitionChecks?, string[])
Declaration
public static bool CanMapProperty(Type sourceType, Type destinationType, string propertyName, MappingPropertyDefinitionChecks? definitionChecks = null, string[] ignoredProperties = null)
Parameters
| Type |
Name |
Description |
| System.Type |
sourceType |
|
| System.Type |
destinationType |
|
| string |
propertyName |
|
| MappingPropertyDefinitionChecks? |
definitionChecks |
|
| string[] |
ignoredProperties |
|
Returns
CanMapProperty<TSource, TDestination>(string, MappingPropertyDefinitionChecks?, string[])
Declaration
public static bool CanMapProperty<TSource, TDestination>(string propertyName, MappingPropertyDefinitionChecks? definitionChecks = null, string[] ignoredProperties = null)
Parameters
Returns
Type Parameters
| Name |
Description |
| TSource |
|
| TDestination |
|
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 |
| System.Type |
sourceType |
|
| System.Type |
destinationType |
|
| System.Collections.Generic.Dictionary<TKey, TValue><string, object> |
sourceDictionary |
|
| System.Collections.Generic.Dictionary<TKey, TValue><string, object> |
destinationDictionary |
|
| MappingPropertyDefinitionChecks? |
definitionChecks |
|
| string[] |
ignoredProperties |
|
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 Parameters
| Name |
Description |
| TSource |
|
| TDestination |
|
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 |
| System.Collections.Generic.Dictionary<TKey, TValue><string, object> |
sourceDictionary |
|
| System.Collections.Generic.Dictionary<TKey, TValue><string, object> |
destinationDictionary |
|
| MappingPropertyDefinitionChecks? |
definitionChecks |
|
| string[] |
ignoredProperties |
|
Type Parameters
| Name |
Description |
| TSource |
|
| TDestination |
|