TurboDB VCL Component Library



Previous  Top  Next

Creates a new foreign key and adds it to the collection.

Delphi Syntax

function Add(ParentTableName, ParentFields, ChildFields: string; UpdateAction: TTdbForeignKeyAction = tiaReject; DeleteAction: TTdbForeignKeyAction = tiaReject): TTdbForeignKeyDef; overload;

C++ Syntax

virtual TTdbForeignKeyDef* __fastcall Add(const System::String ParentTableName, const System::String ParentFields, const System::String ChildFields, TTdbForeignKeyAction UpdateAction = tiaReject, TTdbForeignKeyAction DeleteAction = tiaReject);


Use Add to create a foreign key for a table within one function call.