DbDatabaseRunScalarQuery Method |
Runs a scalar query.
Namespace:
Cadcorp.DataAccess
Assembly:
Cadcorp.GFB.DataAccess (in Cadcorp.GFB.DataAccess.dll) Version: 9.0.2618.0 (9.0.2618.0)
Syntaxprotected long RunScalarQuery(
DbConnection connection,
string query,
IDataParameter[] parameters
)
Protected Function RunScalarQuery (
connection As DbConnection,
query As String,
parameters As IDataParameter()
) As Long
Parameters
- connection
- Type: System.Data.CommonDbConnection
The database connection object for this command, if the connection is closed it will be opened - query
- Type: SystemString
The scalar query to run - parameters
- Type: System.DataIDataParameter
Array of IDataParameter objects containing parameters to the query
Return Value
Type:
Int64The result of the scalar query
See Also