Show / Hide Table of Contents

    ISqlExecutor.ScalarAsync Method

    .NET Standard 2.x

    Asynchronously executes the SQL SELECT statement and returns the first column of the first row in the result set. All other columns and rows are ignored.

    Namespace: SnapObjects.Data

    Assembly: SnapObjects.Data.dll

    Overloads

    Method Description
    ScalarAsync<TValue>(string sqlText, params object[] parameters) Asynchronously executes the SQL SELECT statement and returns the first column of the first row in the result set. All other columns and rows are ignored.
    ScalarAsync<TValue>(string sqlText, object[] parameters, CancellationToken cancellationToken) Asynchronously executes the SQL SELECT statement and returns the first column of the first row in the result set. All other columns and rows are ignored.
    ScalarAsync<TValue>(ISqlQueryBuilder sqlQueryBuilder, params object[] parameters) Asynchronously executes the SQL SELECT statement created by an ISqlQueryBuilder object and returns the first column of the first row in the result set. All other columns and rows are ignored.
    ScalarAsync<TValue>(ISqlQueryBuilder sqlQueryBuilder, object[] parameters, CancellationToken cancellationToken) Asynchronously executes the SQL SELECT statement created by an ISqlQueryBuilder object and returns the first column of the first row in the result set. All other columns and rows are ignored.
    Back to top Generated by Appeon