Gets the primary key for a given table.
Namespace: SchemaExplorerAssembly: SchemaExplorer (in SchemaExplorer.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
PrimaryKeySchema GetTablePrimaryKey( string connectionString, TableSchema table ) |
Visual Basic |
---|
Function GetTablePrimaryKey ( connectionString As String, table As TableSchema ) As PrimaryKeySchema |
Parameters
- connectionString
- Type: System..::..String
The connection string used to connect to the target database.
- table
- Type: SchemaExplorer..::..TableSchema
The table schema.
Return Value
Type: PrimaryKeySchemaAn the primary key for a specific table.