ISqlConnectionService.QueryAsync<T> 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 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
Task<IEnumerable<T>>
Completion task with results