Share via


ISqlConnection.DeferredQuery<T>(String, Object[]) Method

Definition

Query a SQL statement from our storage. Iterate on the IEnumerable will start feeding data

public:
generic <typename T>
 where T : gcnew() System::Collections::Generic::IEnumerable<T> ^ DeferredQuery(System::String ^ query, ... cli::array <System::Object ^> ^ args);
public System.Collections.Generic.IEnumerable<T> DeferredQuery<T> (string query, params object[] args) where T : new();
abstract member DeferredQuery : string * obj[] -> seq<'T (requires 'T : (new : unit -> 'T))> (requires 'T : (new : unit -> 'T))
Public Function DeferredQuery(Of T As New) (query As String, ParamArray args As Object()) As IEnumerable(Of T)

Type Parameters

T

Type for mapping our expected result

Parameters

query
String

The SQL statement

args
Object[]

List of substitution parameters

Returns

IEnumerable with results

Applies to