C# Класс Habanero.Smooth.PropertyAutoMapper

This is a class that will automap all properties in the BusinessObject.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateDateTimePropRule PropRuleDate
CreateDateTimeStringPropRule PropRuleDate
CreateIntPropRule IPropRule
CreatePatternMatchPropRule Habanero.BO.PropRuleString
CreateShortPropRule IPropRule
CreateStringLengthPropRule Habanero.BO.PropRuleString
GetDate System.DateTime

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CreateDateTimePropRule ( ) : PropRuleDate
CreateDateTimeStringPropRule ( ) : PropRuleDate
CreateIntPropRule ( ) : IPropRule
CreatePatternMatchPropRule ( ) : Habanero.BO.PropRuleString
CreateShortPropRule ( ) : IPropRule
CreateStringLengthPropRule ( ) : Habanero.BO.PropRuleString
GetDate ( string dateString, System.DateTime initialDate ) : System.DateTime

Описание методов

MapProperty() публичный Метод

Will attempt to map a PropertyInfo to an IPropDef. If it cannot be mapped then will return null.
public MapProperty ( ) : IPropDef
Результат IPropDef

PropertyAutoMapper() публичный Метод

Constructs the Property Automapper for a particular PropertyInfo.
public PropertyAutoMapper ( PropertyInfo propInfo ) : System
propInfo System.Reflection.PropertyInfo
Результат System

PropertyAutoMapper() публичный Метод

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
Результат System