Public Function ForeignKeyExists( _ ByVal tableName As String, _ ByVal columnName As String, _ ByVal parentTableName As String, _ ByVal parentColumnName As String _ ) As Boolean
Dim instance As DataHelper Dim tableName As String Dim columnName As String Dim parentTableName As String Dim parentColumnName As String Dim value As Boolean value = instance.ForeignKeyExists(tableName, columnName, parentTableName, parentColumnName)
public bool ForeignKeyExists( string tableName, string columnName, string parentTableName, string parentColumnName )
public: bool ForeignKeyExists( string* tableName, string* columnName, string* parentTableName, string* parentColumnName )
public: bool ForeignKeyExists( String^ tableName, String^ columnName, String^ parentTableName, String^ parentColumnName )
Parameters
- tableName
- Name of the table.
- columnName
- Name of the column.
- parentTableName
- Name of the parent table.
- parentColumnName
- Name of the parent column.
Return Value
true
if the foreign key exists, false
otherwise.