Knight Data Access Layer
ForeignKeyExists Method (IDataHelper)




KellermanSoftware.NetDataAccessLayer Namespace > IDataHelper Interface : ForeignKeyExists Method
Returns true if the Foreign Key Exists
Syntax
Function ForeignKeyExists( _
   ByVal tableName As String, _
   ByVal columnName As String, _
   ByVal parentTableName As String, _
   ByVal parentColumnName As String _
) As Boolean
Dim instance As IDataHelper
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)
bool ForeignKeyExists( 
   string tableName,
   string columnName,
   string parentTableName,
   string parentColumnName
)
bool ForeignKeyExists( 
   string* tableName,
   string* columnName,
   string* parentTableName,
   string* parentColumnName
) 
bool ForeignKeyExists( 
   String^ tableName,
   String^ columnName,
   String^ parentTableName,
   String^ parentColumnName
) 

Parameters

tableName
columnName
parentTableName
parentColumnName
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IDataHelper Interface
IDataHelper Members