Craig's Utility Library
4.0 Beta
|
Type mapping base class More...
Public Member Functions | |
abstract ITypeMapping< Left, Right > | AddMapping (Expression< Func< Left, object >> LeftExpression, Expression< Func< Right, object >> RightExpression) |
Adds a mapping More... | |
abstract ITypeMapping< Left, Right > | AddMapping (Func< Left, object > LeftGet, Action< Left, object > LeftSet, Expression< Func< Right, object >> RightExpression) |
Adds a mapping More... | |
abstract ITypeMapping< Left, Right > | AddMapping (Expression< Func< Left, object >> LeftExpression, Func< Right, object > RightGet, Action< Right, object > RightSet) |
Adds a mapping More... | |
abstract ITypeMapping< Left, Right > | AddMapping (Func< Left, object > LeftGet, Action< Left, object > LeftSet, Func< Right, object > RightGet, Action< Right, object > RightSet) |
Adds a mapping More... | |
virtual ITypeMapping | AutoMap () |
Automatically maps properties that are named the same thing More... | |
void | Copy (object Source, object Destination) |
Copies from the source to the destination More... | |
abstract void | Copy (Left Source, Right Destination) |
Copies from the source to the destination More... | |
abstract void | Copy (Right Source, Left Destination) |
Copies from the source to the destination More... | |
abstract void | CopyLeftToRight (Left Source, Right Destination) |
Copies from the source to the destination (used in instances when both Left and Right are the same type and thus Copy is ambiguous) More... | |
abstract void | CopyRightToLeft (Right Source, Left Destination) |
Copies from the source to the destination (used in instances when both Left and Right are the same type and thus Copy is ambiguous) More... | |
Protected Member Functions | |
TypeMappingBase () | |
Constructor More... | |
Properties | |
ConcurrentBag< IMapping< Left, Right > > | Mappings [get] |
List of mappings More... | |
Type mapping base class
Definition at line 37 of file TypeMappingBase.cs.
|
protected |
Constructor
Definition at line 42 of file TypeMappingBase.cs.
|
pure virtual |
Adds a mapping
LeftExpression | Left expression |
RightExpression | Right expression |
Implemented in Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.
|
pure virtual |
Adds a mapping
LeftGet | Left get function |
LeftSet | Left set action |
RightExpression | Right expression |
Implemented in Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.
|
pure virtual |
Adds a mapping
LeftExpression | Left expression |
RightGet | Right get function |
RightSet | Right set function |
Implemented in Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.
|
pure virtual |
Adds a mapping
LeftGet | Left get function |
LeftSet | Left set function |
RightGet | Right get function |
RightSet | Right set function |
Implemented in Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.
|
virtual |
Automatically maps properties that are named the same thing
Definition at line 92 of file TypeMappingBase.cs.
void Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.Copy | ( | object | Source, |
object | Destination | ||
) |
Copies from the source to the destination
Source | Source object |
Destination | Destination object |
Definition at line 132 of file TypeMappingBase.cs.
|
pure virtual |
Copies from the source to the destination
Source | Source object |
Destination | Destination object |
Implemented in Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.
|
pure virtual |
Copies from the source to the destination
Source | Source object |
Destination | Destination object |
Implemented in Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.
|
pure virtual |
Copies from the source to the destination (used in instances when both Left and Right are the same type and thus Copy is ambiguous)
Source | Source |
Destination | Destination |
Implemented in Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.
|
pure virtual |
Copies from the source to the destination (used in instances when both Left and Right are the same type and thus Copy is ambiguous)
Source | Source |
Destination | Destination |
Implemented in Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.
|
getprotected |
List of mappings
Definition at line 50 of file TypeMappingBase.cs.