DatasetQuery.SelectCommandWithStatusAsync Method
The tags configured in the mapping column will receive the value of the first row.
Parameters
message with the status of the select command
C# Example:
TRef<int> status = new TRef<int>();
DataTable dataTable;
dataTable = await @Dataset.Query.query1.SelectCommandWithStatusAsync(status);
if (status.Value == 0 && dataTable != null && dataTable.Rows.Count > 0)
{
@Tag.firstItem = dataTable.Rows[0]["Item"].ToString();
}