Skip to content

T_CodeJam_Mapping_MapperBuilder_2

Andrew Koryavchenko edited this page Jun 17, 2018 · 6 revisions

MapperBuilder(TFrom, TTo) Class

Builds a mapper that maps an object of TFrom type to an object of TTo type.

Inheritance Hierarchy

System.Object
  CodeJam.Mapping.MapperBuilder(TFrom, TTo)
Namespace: CodeJam.Mapping
Assembly: CodeJam.Blocks (in CodeJam.Blocks.dll) Version: 2.0.0.0

Syntax

C#

public class MapperBuilder<TFrom, TTo> : IMapperBuilder

VB

Public Class MapperBuilder(Of TFrom, TTo)
	Implements IMapperBuilder

F#

type MapperBuilder<'TFrom, 'TTo> =  
    class
        interface IMapperBuilder
    end

Type Parameters

 

TFrom
Type to map from.
TTo
Type to map to.
  The MapperBuilder(TFrom, TTo) type exposes the following members.

Constructors

 

Name Description
Public method MapperBuilder(TFrom, TTo) Initializes a new instance of the MapperBuilder(TFrom, TTo) class
  Back to Top

Properties

 

Name Description
Public property DeepCopy If true, performs deep copy. if default (null), the GetMapperExpressionEx() method does not do deep copy, however the GetMapperExpression() method does.
Public property FromMappingDictionary Defines member name mapping for source types.
Public property FromType Type to map from.
Public property MappingSchema Mapping schema.
Public property MemberFilter Filters target members to map.
Public property MemberMappers Member mappers.
Public property ProcessCrossReferences If true, processes object cross references. if default (null), the GetMapperExpressionEx() method does not process cross references, however the GetMapperExpression() method does.
Public property ToMappingDictionary Defines member name mapping for destination types.
Public property ToType Type to map to.
  Back to Top

Methods

 

Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FromMapping(IReadOnlyDictionary(String, String)) Defines member name mapping for source types.
Public method FromMapping(String, String) Defines member name mapping for source types.
Public method FromMapping(Type, IReadOnlyDictionary(String, String)) Defines member name mapping for source types.
Public method FromMapping(Type, String, String) Defines member name mapping for source types.
Public method FromMapping(T)(IReadOnlyDictionary(String, String)) Defines member name mapping for source types.
Public method FromMapping(T)(String, String) Defines member name mapping for source types.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetMapper Returns a mapper to map an object of TFrom type to an object of TTo type.
Public method GetMapperExpression Returns a mapper expression to map an object of TFrom type to an object of TTo type.
Public method GetMapperExpressionEx Returns a mapper expression to map an object of TFrom type to an object of TTo type. Returned expression is compatible to IQueriable.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodCode example MapMember(T) Adds member mapper.
Public method Mapping(IReadOnlyDictionary(String, String)) Defines member name mapping for source and destination types.
Public method Mapping(String, String) Defines member name mapping for source and destination types.
Public method Mapping(Type, IReadOnlyDictionary(String, String)) Defines member name mapping for source and destination types.
Public method Mapping(Type, String, String) Defines member name mapping for source and destination types.
Public method Mapping(T)(IReadOnlyDictionary(String, String)) Defines member name mapping for source and destination types.
Public method Mapping(T)(String, String) Defines member name mapping for source and destination types.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetDeepCopy If true, performs deep copy.
Public method SetMappingSchema Sets mapping schema.
Public method SetMemberFilter Adds a predicate to filter target members to map.
Public method SetProcessCrossReferences If true, processes object cross references.
Public method ToMapping(IReadOnlyDictionary(String, String)) Defines member name mapping for destination types.
Public method ToMapping(String, String) Defines member name mapping for destination types.
Public method ToMapping(Type, IReadOnlyDictionary(String, String)) Defines member name mapping for destination types.
Public method ToMapping(Type, String, String) Defines member name mapping for destination types.
Public method ToMapping(T)(IReadOnlyDictionary(String, String)) Defines member name mapping for destination types.
Public method ToMapping(T)(String, String) Defines member name mapping for destination types.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

See Also

Reference

CodeJam.Mapping Namespace

Clone this wiki locally