ISqlConnection.DeferredQuery<T>(String, Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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<T>
IEnumerable with results