Click or drag to resize

TableDefineForeignKey Method

Check for ForeignKeyField

Namespace: GSF.Data
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
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