OpenPetra
Free Administration Software for Non-Profits
Ict.Common.Data.TTypedConstraint Class Reference

this defines a constraint, foreign key More...

Inheritance diagram for Ict.Common.Data.TTypedConstraint:
Ict.Common.Data.TTypedRelation

Public Member Functions

 TTypedConstraint (String AName, String ATable1, string[] AKey1, String ATable2, string[] AKey2)
 Create a typed constraint, that is reusable, and helps when deleting tables. Key2 points to table1 with Key1; e.g. key2 is the foreign key, key1 is a primary key the constraint is added to table2 This follows the parameter order of System.Data.ConstraintCollection.Add( name, primaryKeyColumn, foreignKeyColumn) More...
 
 TTypedConstraint ()
 default constructor More...
 

Public Attributes

String FName
 name of the constraint More...
 
String FTable1
 first table involved, the one having the foreign key More...
 
String FTable2
 the other table involved, it is refered to by the first table More...
 
string[] FKey1
 the foreign key in the first table More...
 
string[] FKey2
 usually the primary key or another unique key of the second table More...
 

Detailed Description

this defines a constraint, foreign key

Constructor & Destructor Documentation

◆ TTypedConstraint() [1/2]

Ict.Common.Data.TTypedConstraint.TTypedConstraint ( String  AName,
String  ATable1,
string[]  AKey1,
String  ATable2,
string[]  AKey2 
)
inline

Create a typed constraint, that is reusable, and helps when deleting tables. Key2 points to table1 with Key1; e.g. key2 is the foreign key, key1 is a primary key the constraint is added to table2 This follows the parameter order of System.Data.ConstraintCollection.Add( name, primaryKeyColumn, foreignKeyColumn)

Returns
void

◆ TTypedConstraint() [2/2]

Ict.Common.Data.TTypedConstraint.TTypedConstraint ( )
inline

default constructor

Member Data Documentation

◆ FKey1

string [] Ict.Common.Data.TTypedConstraint.FKey1

the foreign key in the first table

◆ FKey2

string [] Ict.Common.Data.TTypedConstraint.FKey2

usually the primary key or another unique key of the second table

◆ FName

String Ict.Common.Data.TTypedConstraint.FName

name of the constraint

◆ FTable1

String Ict.Common.Data.TTypedConstraint.FTable1

first table involved, the one having the foreign key

◆ FTable2

String Ict.Common.Data.TTypedConstraint.FTable2

the other table involved, it is refered to by the first table


The documentation for this class was generated from the following file: