DatasetQuery.SelectCommandAsync Method

Executes an asynchronous Select command, according to the SqlStatement.
<ID("SelectCommandAsync", (int)e.SelectCommandAsync)> _ 
Public Function SelectCommandAsync() As Task(Of DataTable)
This language is not supported or no code example is available.
[ID("SelectCommandAsync", (int)e.SelectCommandAsync)] 
public Task<DataTable> SelectCommandAsync()
This language is not supported or no code example is available.

Return Value

Task<DataTable>

System.Data.DataTable or null

Remarks
 
The tags configured in the mapping column will receive the value of the first row.
Example
 
C# Example:
 DataTable dataTable = await @Dataset.Query.query1.SelectCommandAsync();
 if (dataTable != null && dataTable.Rows.Count > 0)
 {
     @Tag.firstItem = dataTable.Rows[0]["Item"].ToString();
 }
 					

.NET Framework

Supported in: 4.8

In this article

Definition