C# Class 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.
Inheritance: IBOPropertyMapper
Mostra file Open project: Chillisoft/habanero Class Usage Examples

Protected Properties

Property Type Description
_property IBOProp

Public Methods

Method Description
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

Private Methods

Method Description
CheckBusinessObjectSet ( string methodName ) : void
ChildProperty_OnRelatedBusinessObjectChanged ( object sender, EventArgs e ) : void
DeRegisterForChildRelationshipEvents ( ) : void
FirePropertyChanged ( ) : void
RegisterForChildRelationshipEvents ( ) : void
UpdateChildProperty ( ) : void
UpdateChildPropertyBO ( ) : void

Method Details

BOPropertyMapper() public method

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).
return System

GetPropertyValue() public method

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

SetPropertyValue() public method

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

Property Details

_property protected_oe property

The property used to map.
protected IBOProp _property
return IBOProp