Miado - Much-improved ADO.Net
Return the first instance of a strongly-typed
business object that is populated from the result set
of a given query
Namespace:
Miado
Assembly:
Miado (in Miado.dll) Version: 0.8.10214.0 (0.8.10214.0)
Syntax
| Visual Basic (Declaration) |
|---|
Function QueryForOne(Of T) ( _
resultSetMapper As Func(Of IResultSetRow, T) _
) As T |
| Visual C++ |
|---|
generic<typename T>
T QueryForOne(
Func<IResultSetRow^, T>^ resultSetMapper
) |
Parameters
- resultSetMapper
- Type: System..::.Func<(Of <(IResultSetRow, T>)>)
a function used to map
the results from a IResultSetRow to a given object
Type Parameters
- T
- the type of object that will be created
using the DbDataReader
Return Value
the first object returned from the query
See Also