Back to Devexpress

Session.ExecuteScalar Method

xpo-devexpress-dot-xpo-dot-session-dot-executescalar.md

latest1.5 KB
Original Source

Session.ExecuteScalar Method

NameParametersDescription
ExecuteScalar(String, QueryParameterCollection)sql, parametersExecutes the specified SQL query and returns the first column of the first row in the result set returned by the query.
ExecuteScalar(String, Object[])sql, parameterValuesExecutes the specified SQL query and returns the first column of the first row in the result set returned by the query.
ExecuteScalar(String, String[], QueryParameterCollection)sql, parameterNames, parametersExecutes the specified SQL query and returns the first column of the first row in the result set returned by the query.
ExecuteScalar(String, String[], Object[])sql, parameterNames, parameterValuesExecutes the specified SQL query and returns the first column of the first row in the result set returned by the query.
ExecuteScalar(String)sqlExecutes the specified SQL query and returns the first column of the first row in the result set returned by the query.