Tortuga.Chain Namespace
Tortuga.Chain.Metadata Namespace

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

Gets a record by its primary key.

Namespace:  Tortuga.Chain.MySql
Assembly:  Tortuga.Chain.MySql (in Tortuga.Chain.MySql.dll)

Syntax


public ISingleRowDbCommandBuilder GetByKey<TKey>(
	string tableName,
	TKey key
)
Public Function GetByKey(Of TKey) ( _
	tableName As String, _
	key As TKey _
) As ISingleRowDbCommandBuilder
public:
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

MultipleRowDbCommandBuilder<AbstractCommand, AbstractParameter>.