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

ISupportsGetByColumn..::..GetByColumn<(Of <(<'TObject, TKey>)>)> Method (String, TKey)

Gets one or more records by an arbitrary column.

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

Syntax


IMultipleRowDbCommandBuilder<TObject> GetByColumn<TObject, TKey>(
	string columnName,
	TKey key
)
Function GetByColumn(Of TObject, TKey) ( _
	columnName As String, _
	key As TKey _
) As IMultipleRowDbCommandBuilder(Of TObject)
generic<typename TObject, typename TKey>
IMultipleRowDbCommandBuilder<TObject>^ GetByColumn(
	String^ columnName, 
	TKey key
)

Type Parameters

TObject
The type of the object. Used to determine which table will be read.
TKey

Parameters

columnName
Type: String
The name of the column to search.
key
Type: TKey
The search key.