All docs
V19.2
19.2
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Session.ExecuteScalarAsync Method

Name Parameters Description
ExecuteScalarAsync(String, CancellationToken) sql, cancellationToken

Executes the specified SQL query and returns the first column of the first row in the result set returned by the query.

ExecuteScalarAsync(String, Object[], CancellationToken) sql, parameterValues, cancellationToken

Executes the specified SQL query and returns the first column of the first row in the result set returned by the query.

ExecuteScalarAsync(String, String[], Object[], CancellationToken) sql, parameterNames, parameterValues, cancellationToken

Asynchronously executes the specified SQL query and returns the first column of the first row in the result set returned by the query.