C# 클래스 Habanero.BO.ReflectionPropertyMapper

This is a mapper class that handles the mapping of a property name to a specific property for a specified IBusinessObject. The property name can be specified as a path through single relationships on the IBusinessObject and its' relationship tree. For Example:
For the ContactPerson BusinessObject when the propertyName is "FirstName", the returned IBOProp will be the "FirstName" property on ContactPerson.
If the propertyName was "Organisation.Name" then the Organisation relationship on the contact person will be traversed and monitored and return the corresponding "Name" IBOProp for the ContactPerson's current Organisation.
상속: IBOPropertyMapper
파일 보기 프로젝트 열기: Chillisoft/habanero 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_invalidMessage string
_propertyInfo System.Reflection.PropertyInfo

공개 메소드들

메소드 설명
GetPropertyValue ( ) : object

Return the Property Value for the Property being mapped.

ReflectionPropertyMapper ( string propertyName ) : System

Creates a BOPropertyMapper for the specified property name/path.

SetPropertyValue ( object propValue ) : void

Sets the BOProp that this mapper is mapped to the associated propValue

비공개 메소드들

메소드 설명
CheckBusinessObjectSet ( string methodName ) : void
ThrowPropertyNotFoundException ( IBusinessObject businessObject ) : void

메소드 상세

GetPropertyValue() 공개 메소드

Return the Property Value for the Property being mapped.
public GetPropertyValue ( ) : object
리턴 object

ReflectionPropertyMapper() 공개 메소드

Creates a BOPropertyMapper for the specified property name/path.
This is thrown if is null or empty.
public ReflectionPropertyMapper ( string propertyName ) : System
propertyName string The name of the property to be mapped (this could also be in the form of a path through single relationships on the BO).
리턴 System

SetPropertyValue() 공개 메소드

Sets the BOProp that this mapper is mapped to the associated propValue
public SetPropertyValue ( object propValue ) : void
propValue object
리턴 void

프로퍼티 상세

_invalidMessage 보호되어 있는 프로퍼티

The message to display when the property value is invalid.
protected string _invalidMessage
리턴 string

_propertyInfo 보호되어 있는 프로퍼티

Reflection info about the property
protected PropertyInfo,System.Reflection _propertyInfo
리턴 System.Reflection.PropertyInfo