Click or drag to resize

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)
Syntax
protected long RunScalarQuery(
	DbConnection connection,
	string query,
	IDataParameter[] parameters
)

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: Int64
The result of the scalar query
See Also