Craig's Utility Library  4.0 Beta
Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right > Class Template Reference

Type mapping default class More...

Inheritance diagram for Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >:
Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right > Utilities.DataTypes.DataMapper.Interfaces.ITypeMapping< Left, Right >

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...
 

Detailed Description

Type mapping default class

Definition at line 33 of file TypeMapping.cs.

Member Function Documentation

override ITypeMapping<Left, Right> Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.AddMapping ( Expression< Func< Left, object >>  LeftExpression,
Expression< Func< Right, object >>  RightExpression 
)
virtual

Adds a mapping

Parameters
LeftExpressionLeft expression
RightExpressionRight expression
Returns
This

Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.

Definition at line 41 of file TypeMapping.cs.

override ITypeMapping<Left, Right> Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.AddMapping ( Func< Left, object >  LeftGet,
Action< Left, object >  LeftSet,
Expression< Func< Right, object >>  RightExpression 
)
virtual

Adds a mapping

Parameters
LeftGetLeft get function
LeftSetLeft set action
RightExpressionRight expression
Returns
This

Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.

Definition at line 54 of file TypeMapping.cs.

override ITypeMapping<Left, Right> Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.AddMapping ( Expression< Func< Left, object >>  LeftExpression,
Func< Right, object >  RightGet,
Action< Right, object >  RightSet 
)
virtual

Adds a mapping

Parameters
LeftExpressionLeft expression
RightGetRight get function
RightSetRight set function
Returns
This

Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.

Definition at line 67 of file TypeMapping.cs.

override ITypeMapping<Left, Right> Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.AddMapping ( Func< Left, object >  LeftGet,
Action< Left, object >  LeftSet,
Func< Right, object >  RightGet,
Action< Right, object >  RightSet 
)
virtual

Adds a mapping

Parameters
LeftGetLeft get function
LeftSetLeft set function
RightGetRight get function
RightSetRight set function
Returns
This

Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.

Definition at line 81 of file TypeMapping.cs.

override void Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.Copy ( Left  Source,
Right  Destination 
)
virtual

Copies from the source to the destination

Parameters
SourceSource object
DestinationDestination object

Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.

Definition at line 92 of file TypeMapping.cs.

override void Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.Copy ( Right  Source,
Left  Destination 
)
virtual

Copies from the source to the destination

Parameters
SourceSource object
DestinationDestination object

Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.

Definition at line 105 of file TypeMapping.cs.

override void Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.CopyLeftToRight ( Left  Source,
Right  Destination 
)
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)

Parameters
SourceSource
DestinationDestination

Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.

Definition at line 119 of file TypeMapping.cs.

override void Utilities.DataTypes.DataMapper.Default.TypeMapping< Left, Right >.CopyRightToLeft ( Right  Source,
Left  Destination 
)
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)

Parameters
SourceSource
DestinationDestination

Implements Utilities.DataTypes.DataMapper.BaseClasses.TypeMappingBase< Left, Right >.

Definition at line 133 of file TypeMapping.cs.


The documentation for this class was generated from the following file: