다음을 통해 공유


ISqlConnectionService.QueryAsync<T> Method

Definition

Query our database

public:
generic <typename T>
 System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<T> ^> ^ QueryAsync(Func<Microsoft::VisualStudio::Workspace::Indexing::ISqlConnection ^, System::Collections::Generic::IEnumerable<T> ^> ^ queryCallback);
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<T>> QueryAsync<T> (Func<Microsoft.VisualStudio.Workspace.Indexing.ISqlConnection,System.Collections.Generic.IEnumerable<T>> queryCallback);
abstract member QueryAsync : Func<Microsoft.VisualStudio.Workspace.Indexing.ISqlConnection, seq<'T>> -> System.Threading.Tasks.Task<seq<'T>>
Public Function QueryAsync(Of T) (queryCallback As Func(Of ISqlConnection, IEnumerable(Of T))) As Task(Of IEnumerable(Of T))

Type Parameters

T

Type of data being returned for each row

Parameters

queryCallback
Func<ISqlConnection,IEnumerable<T>>

The query callback

Returns

Completion task with results

Applies to