TResult
The return type of the column value.
Platform Core .NET Assemblies API
ExecuteScalar<TResult>(DBExecutor) Method
See Also  Send Feedback
Terrasoft.Core.DB Namespace > IDBReadableCommand Interface > ExecuteScalar Method : ExecuteScalar<TResult>(DBExecutor) Method
dbExecutor
The DBExecutor instance used to query the database.

Glossary Item Box

Executes the SQL operator and returns the typed first column of the first row of the resulting set, using the passed-in DBExecutor instance.

Syntax

 
C#
 
 

Parameters

dbExecutor
The DBExecutor instance used to query the database.

Type Parameters

TResult
The return type of the column value.

Return Value

The first column of the first row in the resulting set of the TResult type.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.