Knight Data Access Layer
GetPrimaryKeyColumnsForTable Method (PrimaryKeyHelper)




KellermanSoftware.NetDataAccessLayer Namespace > PrimaryKeyHelper Class : GetPrimaryKeyColumnsForTable Method
Get a list of the primary key columns for a table
Syntax
Public Shared Function GetPrimaryKeyColumnsForTable( _
   ByVal connection As IDbConnection, _
   ByVal tableName As String _
) As List(Of String)
Dim connection As IDbConnection
Dim tableName As String
Dim value As List(Of String)
 
value = PrimaryKeyHelper.GetPrimaryKeyColumnsForTable(connection, tableName)
public static List<string> GetPrimaryKeyColumnsForTable( 
   IDbConnection connection,
   string tableName
)
public: static List<string*>* GetPrimaryKeyColumnsForTable( 
   IDbConnection* connection,
   string* tableName
) 
public:
static List<String^>^ GetPrimaryKeyColumnsForTable( 
   IDbConnection^ connection,
   String^ tableName
) 

Parameters

connection
tableName
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

PrimaryKeyHelper Class
PrimaryKeyHelper Members