Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace

ISupportsGetByKey..::..GetByKey<(Of <(<'TKey>)>)> Method (String, TKey)

Gets a record by its primary key.

Namespace:  Tortuga.Chain.DataSources
Assembly:  Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)

Syntax


ISingleRowDbCommandBuilder GetByKey<TKey>(
	string tableName,
	TKey key
)
Function GetByKey(Of TKey) ( _
	tableName As String, _
	key As TKey _
) As ISingleRowDbCommandBuilder
generic<typename TKey>
ISingleRowDbCommandBuilder^ GetByKey(
	String^ tableName, 
	TKey key
)

Type Parameters

TKey

Parameters

tableName
Type: String
Name of the table.
key
Type: TKey
The key.

Return Value

Remarks


This only works on tables that have a scalar primary key.