Skip to content

IForeignKey Interface ​

Definition ​

Interface for maintaining a FOREIGN KEY constraint with another table

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Properties ​

NameDescription
ColumnColumn name holding the constrained value
OnDeleteAction when a referenced row is deleted
OnUpdateAction when a referenced key is updated
ReferenceColumnColumn on the foreign table
TableNameName of the referenced table

Methods ​

NameDescription
string GetKeyName()Returns the Name value, or generates a default FOREIGN KEY name using a pattern
bool IsValidDefinition()Verifies the validity of the request FOREIGN KEY based on values