Click or drag to resize

TableDefineForeignKey Method

Check for ForeignKeyField

Namespace: GSF.Data
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public bool DefineForeignKey(
	string primaryKeyFieldName,
	string foreignKeyTableName,
	string foreignKeyFieldName,
	int foreignKeyOrdinal = -1,
	string foreignKeyName = "",
	ReferentialAction foreignKeyUpdateRule = ReferentialAction.NoAction,
	ReferentialAction foreignKeyDeleteRule = ReferentialAction.NoAction
)
View Source

Parameters

primaryKeyFieldName  String
foreignKeyTableName  String
foreignKeyFieldName  String
foreignKeyOrdinal  Int32  (Optional)
foreignKeyName  String  (Optional)
foreignKeyUpdateRule  ReferentialAction  (Optional)
foreignKeyDeleteRule  ReferentialAction  (Optional)

Return Value

Boolean
See Also