Edit

Share via


DbExtensions.ReflectionSelector<TResult>(IDataRecord) Method

Definition

Creates object of the given type from the results of a query.

public static TResult ReflectionSelector<TResult> (this System.Data.IDataRecord record);
static member ReflectionSelector : System.Data.IDataRecord -> 'Result
<Extension()>
Public Function ReflectionSelector(Of TResult) (record As IDataRecord) As TResult

Type Parameters

TResult

The type to construct.

Parameters

record
IDataRecord

The record from which to read the results.

Returns

TResult

And object of type .

Remarks

Does not support of type dynamic.

Applies to