C# 클래스 Habanero.BO.ClassDefinition.RelKeyDef

This class contains the definition of a Foreign Key that defines the properties RelPropDef that that forms a relationship between two Classes. This class collaborates with the RelPropDef, the ClassDef to provide a definition of the properties involved in the RelationshipDef between two IBusinessObject. This provides an implementation of the Foreign Key Mapping pattern (Fowler (236) - 'Patterns of Enterprise Application Architecture' - 'Maps an association between objects to a foreign Key Reference between tables.') the RelKeyDef should not be used by the Application developer since it is usually constructed based on the mapping in the ClassDef.xml file. The RelKeyDef (Relationship Key Definition) is a list of relationship Property Defs RelPropDef that define the properties that form the persistant relationship definition (RelationshipDef between two Business object defitions (ClassDef. IBusinessObject.
상속: IRelKeyDef
파일 보기 프로젝트 열기: Chillisoft/habanero 1 사용 예제들

공개 메소드들

메소드 설명
Add ( IRelPropDef relPropDef ) : void

Adds the related property definition to this key, as long as a property by that name has not already been added.

Contains ( string propName ) : bool

Returns true if a property with this name is part of this key.

CreateRelKey ( IBOPropCol lBoPropCol ) : IRelKey

Create a relationship key based on this key definition and its associated property definitions

GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates through the collection. The enumerator iterates through the values of a Dictionary of IRelPropDef

RelKeyDef ( ) : System

Constructor to create a new RelKeyDef object

this ( string propName ) : IRelPropDef

Provides an indexing facility for the property definitions in this key definition so that they can be accessed like an array (e.g. collection["surname"])

보호된 메소드들

메소드 설명
Contains ( IRelPropDef relPropDef ) : bool

Returns true if the specified property is found.

Remove ( IRelPropDef relPropDef ) : void

Removes a Related Property definition from the key

비공개 메소드들

메소드 설명
IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

메소드 상세

Add() 공개 메소드

Adds the related property definition to this key, as long as a property by that name has not already been added.
Thrown if the /// argument passed is null
public Add ( IRelPropDef relPropDef ) : void
relPropDef IRelPropDef The RelPropDef object to be added.
리턴 void

Contains() 보호된 메소드

Returns true if the specified property is found.
protected Contains ( IRelPropDef relPropDef ) : bool
relPropDef IRelPropDef The Related Property Definition to search for
리턴 bool

Contains() 공개 메소드

Returns true if a property with this name is part of this key.
public Contains ( string propName ) : bool
propName string The property name to search by
리턴 bool

CreateRelKey() 공개 메소드

Create a relationship key based on this key definition and its associated property definitions
public CreateRelKey ( IBOPropCol lBoPropCol ) : IRelKey
lBoPropCol IBOPropCol The collection of properties
리턴 IRelKey

GetEnumerator() 공개 메소드

Returns an enumerator that iterates through the collection. The enumerator iterates through the values of a Dictionary of IRelPropDef
public GetEnumerator ( ) : IEnumerator
리턴 IEnumerator

RelKeyDef() 공개 메소드

Constructor to create a new RelKeyDef object
public RelKeyDef ( ) : System
리턴 System

Remove() 보호된 메소드

Removes a Related Property definition from the key
protected Remove ( IRelPropDef relPropDef ) : void
relPropDef IRelPropDef The Related Property Definition to remove
리턴 void

this() 공개 메소드

Provides an indexing facility for the property definitions in this key definition so that they can be accessed like an array (e.g. collection["surname"])
public this ( string propName ) : IRelPropDef
propName string The name of the property
리턴 IRelPropDef