Knight Data Access Layer
ForeignKeyExists Method (BaseDatabaseProvider)




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

BaseDatabaseProvider Class
BaseDatabaseProvider Members