C# Класс Habanero.BO.BOPropertyMapper

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
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_property IBOProp

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

Метод Описание
BOPropertyMapper ( string propertyName ) : System

Creates a BOPropertyMapper for the specified property name/path.

GetPropertyValue ( ) : object

Return the Property Value for the Property being mapped.

SetPropertyValue ( object propValue ) : void

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

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

Метод Описание
CheckBusinessObjectSet ( string methodName ) : void
ChildProperty_OnRelatedBusinessObjectChanged ( object sender, EventArgs e ) : void
DeRegisterForChildRelationshipEvents ( ) : void
FirePropertyChanged ( ) : void
RegisterForChildRelationshipEvents ( ) : void
UpdateChildProperty ( ) : void
UpdateChildPropertyBO ( ) : void

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

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

Creates a BOPropertyMapper for the specified property name/path.
This is thrown if is null or empty.
public BOPropertyMapper ( 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

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

Return the Property Value for the Property being mapped.
public GetPropertyValue ( ) : object
Результат object

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

Sets the BOProp that this mapper is mapped to the associated propValue
public SetPropertyValue ( object propValue ) : void
propValue object
Результат void

Описание свойств

_property защищенное свойство

The property used to map.
protected IBOProp _property
Результат IBOProp