C# Class Habanero.BO.ClassDefinition.MultipleRelationshipDef

Defines a relationship where the owner may relate to more than one object.
Inheritance: RelationshipDef
显示文件 Open project: Chillisoft/habanero Class Usage Examples

Public Methods

Method Description
CreateRelationship ( IBusinessObject owningBo, IBOPropCol lBOPropCol ) : IRelationship

Overrides abstract method of parent to facilitate creation of a new Multiple Relationship

MultipleRelationshipDef ( string relationshipName, Type relatedObjectClassType, IRelKeyDef relKeyDef, bool keepReferenceToRelatedObject, string orderBy, DeleteParentAction deleteParentAction ) : System

Constructor to create a new Multiple Relationship Definition

MultipleRelationshipDef ( string relationshipName, string relatedObjectAssemblyName, string relatedObjectClassName, IRelKeyDef relKeyDef, bool keepReferenceToRelatedObject, string orderBy, DeleteParentAction deleteParentAction ) : System

Constructor to create a new single relationship definition

MultipleRelationshipDef ( string relationshipName, string relatedObjectAssemblyName, string relatedObjectClassName, IRelKeyDef relKeyDef, bool keepReferenceToRelatedObject, string orderBy, DeleteParentAction deleteParentAction, InsertParentAction insertParentAction, RelationshipType relationshipType, int timeout ) : System

Constructor to create a new single relationship definition

Method Details

CreateRelationship() public method

Overrides abstract method of parent to facilitate creation of a new Multiple Relationship
public CreateRelationship ( IBusinessObject owningBo, IBOPropCol lBOPropCol ) : IRelationship
owningBo IBusinessObject The business object that will manage /// this relationship
lBOPropCol IBOPropCol The collection of properties
return IRelationship

MultipleRelationshipDef() public method

Constructor to create a new Multiple Relationship Definition
public MultipleRelationshipDef ( string relationshipName, Type relatedObjectClassType, IRelKeyDef relKeyDef, bool keepReferenceToRelatedObject, string orderBy, DeleteParentAction deleteParentAction ) : System
relationshipName string A name for the relationship
relatedObjectClassType System.Type The class type of the related objects
relKeyDef IRelKeyDef The related key definition
keepReferenceToRelatedObject bool Whether to keep a /// reference to the related object. Could be false for memory- /// intensive applications.
orderBy string The sql order-by clause
deleteParentAction DeleteParentAction Provides specific instructions /// with regards to deleting a parent object. See the DeleteParentAction /// enumeration for more detail.
return System

MultipleRelationshipDef() public method

Constructor to create a new single relationship definition
public MultipleRelationshipDef ( string relationshipName, string relatedObjectAssemblyName, string relatedObjectClassName, IRelKeyDef relKeyDef, bool keepReferenceToRelatedObject, string orderBy, DeleteParentAction deleteParentAction ) : System
relationshipName string A name for the relationship
relatedObjectAssemblyName string The assembly name of the related object
relatedObjectClassName string The class name of the related object
relKeyDef IRelKeyDef The related key definition
keepReferenceToRelatedObject bool Whether to keep a /// reference to the related object. Could be false for memory- /// intensive applications.
orderBy string The sql order-by clause
deleteParentAction DeleteParentAction Provides specific instructions /// with regards to deleting a parent object. See the DeleteParentAction /// enumeration for more detail.
return System

MultipleRelationshipDef() public method

Constructor to create a new single relationship definition
public MultipleRelationshipDef ( string relationshipName, string relatedObjectAssemblyName, string relatedObjectClassName, IRelKeyDef relKeyDef, bool keepReferenceToRelatedObject, string orderBy, DeleteParentAction deleteParentAction, InsertParentAction insertParentAction, RelationshipType relationshipType, int timeout ) : System
relationshipName string A name for the relationship
relatedObjectAssemblyName string The assembly name of the related object
relatedObjectClassName string The class name of the related object
relKeyDef IRelKeyDef The related key definition
keepReferenceToRelatedObject bool Whether to keep a /// reference to the related object. Could be false for memory- /// intensive applications.
orderBy string The sql order-by clause
deleteParentAction DeleteParentAction Provides specific instructions /// with regards to deleting a parent object. See the DeleteParentAction /// enumeration for more detail.
insertParentAction InsertParentAction
relationshipType RelationshipType Provides specific instructions for adding/removing a child object.
timeout int The timout in milliseconds. The collection will not be automatically refreshed from the DB if the timeout has nto expired
return System