Knight Data Access Layer
SetPrimaryKeyBySchema Method




KellermanSoftware.NetDataAccessLayer Namespace > PrimaryKeyHelper Class : SetPrimaryKeyBySchema Method
Set the primary and composite keys by the schema
Syntax
Public Shared Sub SetPrimaryKeyBySchema( _
   ByVal table As Table, _
   ByVal primaryKeyColumns As List(Of String) _
) 
Dim table As Table
Dim primaryKeyColumns As List(Of String)
 
PrimaryKeyHelper.SetPrimaryKeyBySchema(table, primaryKeyColumns)
public static void SetPrimaryKeyBySchema( 
   Table table,
   List<string> primaryKeyColumns
)
public: static void SetPrimaryKeyBySchema( 
   Table* table,
   List<string*>* primaryKeyColumns
) 
public:
static void SetPrimaryKeyBySchema( 
   Table^ table,
   List<String^>^ primaryKeyColumns
) 

Parameters

table
primaryKeyColumns
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