ExecuteScalar(DbConnection, string, DbParameter[], CommandType, DbTransaction) Method

A DbConnection extension method that executes the scalar operation.
Namespace: Z.Data.Extensions
Assembly: Z.ExtensionMethods.WithNamespace.dll

Syntax

public static object ExecuteScalar(this DbConnection this, string cmdText, DbParameter[] parameters, CommandType commandType, DbTransaction transaction)

Parameters

this
Type:  DbConnection
The @this to act on.
cmdText
Type:  String
The command text.
parameters
Type:  DbParameter[]
Options for controlling the operation.
commandType
Type:  CommandType
Type of the command.
transaction
Type:  DbTransaction
The transaction.

Return Value

Type:  Object
Powered by ZZZ Projects .NET Documentation Generator 0.0.2 (Alpha)