C# Class Habanero.Smooth.PropertyAutoMapper

This is a class that will automap all properties in the BusinessObject.
Mostrar archivo Open project: Chillisoft/habanero.smooth Class Usage Examples

Private Properties

Property Type Description
CreateDateTimePropRule PropRuleDate
CreateDateTimeStringPropRule PropRuleDate
CreateIntPropRule IPropRule
CreatePatternMatchPropRule Habanero.BO.PropRuleString
CreateShortPropRule IPropRule
CreateStringLengthPropRule Habanero.BO.PropRuleString
GetDate System.DateTime

Public Methods

Method Description
MapProperty ( ) : IPropDef

Will attempt to map a PropertyInfo to an IPropDef. If it cannot be mapped then will return null.

PropertyAutoMapper ( PropertyInfo propInfo ) : System

Constructs the Property Automapper for a particular PropertyInfo.

PropertyAutoMapper ( PropertyWrapper propertyWrapper ) : System

Constructs the Property Automapper for a particular ReflectionWrappers.PropertyWrapper where a PropertyWrapper typically wraps a PropertyInfo and provides additional methods.

Private Methods

Method Description
CreateDateTimePropRule ( ) : PropRuleDate
CreateDateTimeStringPropRule ( ) : PropRuleDate
CreateIntPropRule ( ) : IPropRule
CreatePatternMatchPropRule ( ) : Habanero.BO.PropRuleString
CreateShortPropRule ( ) : IPropRule
CreateStringLengthPropRule ( ) : Habanero.BO.PropRuleString
GetDate ( string dateString, System.DateTime initialDate ) : System.DateTime

Method Details

MapProperty() public method

Will attempt to map a PropertyInfo to an IPropDef. If it cannot be mapped then will return null.
public MapProperty ( ) : IPropDef
return IPropDef

PropertyAutoMapper() public method

Constructs the Property Automapper for a particular PropertyInfo.
public PropertyAutoMapper ( PropertyInfo propInfo ) : System
propInfo System.Reflection.PropertyInfo
return System

PropertyAutoMapper() public method

Constructs the Property Automapper for a particular ReflectionWrappers.PropertyWrapper where a PropertyWrapper typically wraps a PropertyInfo and provides additional methods.
public PropertyAutoMapper ( PropertyWrapper propertyWrapper ) : System
propertyWrapper PropertyWrapper
return System