Craig's Utility Library
4.0 Beta
|
Type mapping default class More...
Public Member Functions | |
override ITypeMapping< Left, Right > | AddMapping (Expression< Func< Left, object >> LeftExpression, Expression< Func< Right, object >> RightExpression) |
Adds a mapping More... | |
override ITypeMapping< Left, Right > | AddMapping (Func< Left, object > LeftGet, Action< Left, object > LeftSet, Expression< Func< Right, object >> RightExpression) |
Adds a mapping More... | |
override ITypeMapping< Left, Right > | AddMapping (Expression< Func< Left, object >> LeftExpression, Func< Right, object > RightGet, Action< Right, object > RightSet) |
Adds a mapping More... | |
override ITypeMapping< Left, Right > | AddMapping (Func< Left, object > LeftGet, Action< Left, object > LeftSet, Func< Right, object > RightGet, Action< Right, object > RightSet) |
Adds a mapping More... | |
override void | Copy (Left Source, Right Destination) |
Copies from the source to the destination More... | |
override void | Copy (Right Source, Left Destination) |
Copies from the source to the destination More... | |
override 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... | |
override 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... | |
Public Member Functions inherited from Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right > | |
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... | |
Additional Inherited Members | |
Protected Member Functions inherited from Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right > | |
TypeMappingBase () | |
Constructor More... | |
Properties inherited from Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right > | |
ConcurrentBag< IMapping< Left, Right > > | Mappings [get] |
List of mappings More... | |
Type mapping default class
Definition at line 33 of file TypeMapping.cs.
|
virtual |
Adds a mapping
LeftExpression | Left expression |
RightExpression | Right expression |
Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.
Definition at line 41 of file TypeMapping.cs.
|
virtual |
Adds a mapping
LeftGet | Left get function |
LeftSet | Left set action |
RightExpression | Right expression |
Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.
Definition at line 54 of file TypeMapping.cs.
|
virtual |
Adds a mapping
LeftExpression | Left expression |
RightGet | Right get function |
RightSet | Right set function |
Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.
Definition at line 67 of file TypeMapping.cs.
|
virtual |
Adds a mapping
LeftGet | Left get function |
LeftSet | Left set function |
RightGet | Right get function |
RightSet | Right set function |
Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.
Definition at line 81 of file TypeMapping.cs.
|
virtual |
Copies from the source to the destination
Source | Source object |
Destination | Destination object |
Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.
Definition at line 92 of file TypeMapping.cs.
|
virtual |
Copies from the source to the destination
Source | Source object |
Destination | Destination object |
Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.
Definition at line 105 of file TypeMapping.cs.
|
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 |
Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.
Definition at line 119 of file TypeMapping.cs.
|
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 |
Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.
Definition at line 133 of file TypeMapping.cs.