NSoft.NFramework.Data.PostgreSql.EnterpriseLibrary.NpgsqlDatabase.ExecuteScalar C# (CSharp) Method

ExecuteScalar() public method

Executes the storedProcedureName with the given parameterValues within a transaction and returns the first column of the first row in the result set returned by the query. Extra columns or rows are ignored.
public ExecuteScalar ( DbTransaction transaction, string storedProcedureName ) : object
transaction System.Data.Common.DbTransaction The to execute the command within.
storedProcedureName string The stored procedure to execute.
return object
        public override object ExecuteScalar(DbTransaction transaction, string storedProcedureName, params object[] parameterValues) {
            return parameterValues.Length == 0
                       ? base.ExecuteScalar(transaction, CommandType.StoredProcedure, storedProcedureName)
                       : base.ExecuteScalar(transaction, storedProcedureName, parameterValues);
        }

Same methods

NpgsqlDatabase::ExecuteScalar ( string storedProcedureName ) : object