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

Mapping class More...

Inheritance diagram for Utilities.DataTypes.DataMapper.Default.Mapping< Left, Right >:
Utilities.DataTypes.DataMapper.BaseClasses.MappingBase< Left, Right > Utilities.DataTypes.DataMapper.Interfaces.IMapping< Left, Right >

Public Member Functions

 Mapping (Expression< Func< Left, object >> LeftExpression, Expression< Func< Right, object >> RightExpression)
 Constructor More...
 
 Mapping (Func< Left, object > LeftGet, Action< Left, object > LeftSet, Expression< Func< Right, object >> RightExpression)
 Constructor More...
 
 Mapping (Expression< Func< Left, object >> LeftExpression, Func< Right, object > RightGet, Action< Right, object > RightSet)
 Constructor More...
 
 Mapping (Func< Left, object > LeftGet, Action< Left, object > LeftSet, Func< Right, object > RightGet, Action< Right, object > RightSet)
 Constructor More...
 
virtual void Copy (Left Source, Right Destination)
 Copies the source to the destination More...
 
virtual void Copy (Right Source, Left Destination)
 Copies the source to the destination More...
 
virtual 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...
 
virtual 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...
 

Properties

Func< Left, object > LeftGet [get, set]
 Left get function More...
 
Action< Left, object > LeftSet [get, set]
 Left set function More...
 
Func< Right, object > RightGet [get, set]
 Right get function More...
 
Action< Right, object > RightSet [get, set]
 Right set function More...
 

Additional Inherited Members

- Protected Member Functions inherited from Utilities.DataTypes.DataMapper.BaseClasses.MappingBase< Left, Right >
 MappingBase ()
 Constructor More...
 

Detailed Description

Mapping class

Template Parameters
LeftLeft type
RightRight type

Definition at line 33 of file Mapping.cs.

Constructor & Destructor Documentation

Utilities.DataTypes.DataMapper.Default.Mapping< Left, Right >.Mapping ( Expression< Func< Left, object >>  LeftExpression,
Expression< Func< Right, object >>  RightExpression 
)

Constructor

Parameters
LeftExpressionLeft expression
RightExpressionRight expression

Definition at line 40 of file Mapping.cs.

Utilities.DataTypes.DataMapper.Default.Mapping< Left, Right >.Mapping ( Func< Left, object >  LeftGet,
Action< Left, object >  LeftSet,
Expression< Func< Right, object >>  RightExpression 
)

Constructor

Parameters
LeftGetLeft get function
LeftSetLeft set action
RightExpressionRight expression

Definition at line 54 of file Mapping.cs.

Utilities.DataTypes.DataMapper.Default.Mapping< Left, Right >.Mapping ( Expression< Func< Left, object >>  LeftExpression,
Func< Right, object >  RightGet,
Action< Right, object >  RightSet 
)

Constructor

Parameters
LeftExpressionLeft expression
RightGetRight get function
RightSetRight set function

Definition at line 68 of file Mapping.cs.

Utilities.DataTypes.DataMapper.Default.Mapping< Left, Right >.Mapping ( Func< Left, object >  LeftGet,
Action< Left, object >  LeftSet,
Func< Right, object >  RightGet,
Action< Right, object >  RightSet 
)

Constructor

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

Definition at line 83 of file Mapping.cs.

Member Function Documentation

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

Copies the source to the destination

Parameters
SourceSource object
DestinationDestination object

Definition at line 116 of file Mapping.cs.

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

Copies the source to the destination

Parameters
SourceSource object
DestinationDestination object

Definition at line 127 of file Mapping.cs.

virtual void Utilities.DataTypes.DataMapper.Default.Mapping< 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 object
DestinationDestination object

Definition at line 139 of file Mapping.cs.

virtual void Utilities.DataTypes.DataMapper.Default.Mapping< 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 object
DestinationDestination object

Definition at line 151 of file Mapping.cs.

Property Documentation

Func<Left, object> Utilities.DataTypes.DataMapper.Default.Mapping< Left, Right >.LeftGet
getsetprotected

Left get function

Definition at line 94 of file Mapping.cs.

Action<Left, object> Utilities.DataTypes.DataMapper.Default.Mapping< Left, Right >.LeftSet
getsetprotected

Left set function

Definition at line 99 of file Mapping.cs.

Func<Right, object> Utilities.DataTypes.DataMapper.Default.Mapping< Left, Right >.RightGet
getsetprotected

Right get function

Definition at line 104 of file Mapping.cs.

Action<Right, object> Utilities.DataTypes.DataMapper.Default.Mapping< Left, Right >.RightSet
getsetprotected

Right set function

Definition at line 109 of file Mapping.cs.


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