Click or drag to resize
GenericSqlCommandExecuteScalar Method (Boolean, CommandType, String, Object)
执行查询命令,并返回查询所返回的结果集的第一行的第一列。

Namespace: X3Platform.Data
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public Object ExecuteScalar(
	bool enableTransaction,
	CommandType commandType,
	string commandText,
	Object[,] commandParameters
)

Parameters

enableTransaction
Type: SystemBoolean

[Missing <param name="enableTransaction"/> documentation for "M:X3Platform.Data.GenericSqlCommand.ExecuteScalar(System.Boolean,System.Data.CommandType,System.String,System.Object[0:,0:])"]

commandType
Type: System.DataCommandType

[Missing <param name="commandType"/> documentation for "M:X3Platform.Data.GenericSqlCommand.ExecuteScalar(System.Boolean,System.Data.CommandType,System.String,System.Object[0:,0:])"]

commandText
Type: SystemString

[Missing <param name="commandText"/> documentation for "M:X3Platform.Data.GenericSqlCommand.ExecuteScalar(System.Boolean,System.Data.CommandType,System.String,System.Object[0:,0:])"]

commandParameters
Type: SystemObject

[Missing <param name="commandParameters"/> documentation for "M:X3Platform.Data.GenericSqlCommand.ExecuteScalar(System.Boolean,System.Data.CommandType,System.String,System.Object[0:,0:])"]

Return Value

Type: Object

[Missing <returns> documentation for "M:X3Platform.Data.GenericSqlCommand.ExecuteScalar(System.Boolean,System.Data.CommandType,System.String,System.Object[0:,0:])"]

See Also