PostgreSqlDataSourceBase..::..GetByKey<(Of <(<'TKey>)>)> Method (PostgreSqlObjectName, TKey)
Gets a record by its primary key.
Namespace:
Tortuga.Chain.PostgreSqlAssembly: Tortuga.Chain.PostgreSql (in Tortuga.Chain.PostgreSql.dll)
Syntax
[SuppressMessageAttribute] public SingleRowDbCommandBuilder<NpgsqlCommand, NpgsqlParameter> GetByKey<TKey>( PostgreSqlObjectName tableName, TKey key )
<SuppressMessageAttribute> _ Public Function GetByKey(Of TKey) ( _ tableName As PostgreSqlObjectName, _ key As TKey _ ) As SingleRowDbCommandBuilder(Of NpgsqlCommand, NpgsqlParameter)
[SuppressMessageAttribute] public: generic<typename TKey> SingleRowDbCommandBuilder<NpgsqlCommand^, NpgsqlParameter^>^ GetByKey( PostgreSqlObjectName^ tableName, TKey key )
Type Parameters
- TKey
Parameters
- tableName
- Type: Tortuga.Chain.PostgreSql..::..PostgreSqlObjectName
Name of the table.
- key
- Type: TKey
The key.