Click or drag to resize
GenericSqlCommand Methods

The GenericSqlCommand type exposes the following members.

Methods
  NameDescription
Public methodBeginTransaction
启动事务
Public methodBeginTransaction(IsolationLevel)
启动事务
Public methodCloseConnection
关闭连接
Public methodCommitTransaction
提交事务
Public methodEquals (Inherited from Object.)
Public methodExecuteNonQuery(String)
执行命令,并返回受影响的行数。
Public methodExecuteNonQuery(CommandType, String)
执行命令,并返回受影响的行数。
Public methodExecuteNonQuery(Boolean, CommandType, String)
执行命令,并返回受影响的行数。
Public methodExecuteNonQuery(CommandType, String, Object)
执行命令,并返回受影响的行数。
Public methodExecuteNonQuery(CommandType, String, GenericSqlCommandParameter)
执行命令,并返回受影响的行数。
Public methodExecuteNonQuery(Boolean, CommandType, String, Object)
执行命令,并返回受影响的行数。
Public methodExecuteNonQuery(Boolean, CommandType, String, GenericSqlCommandParameter)
执行命令,并返回受影响的行数。
Public methodExecuteNonQuery(CommandType, String, Object, Boolean)
执行命令,并返回受影响的行数。
Public methodExecuteNonQuery(CommandType, String, GenericSqlCommandParameter, Boolean)
执行命令,并返回受影响的行数。
Public methodExecuteNonQuery(Boolean, CommandType, String, Object, Boolean)
执行命令,并返回受影响的行数。
Public methodExecuteNonQuery(Boolean, CommandType, String, GenericSqlCommandParameter, Boolean)
执行命令,并返回受影响的行数。
Public methodExecuteQueryForDataSet(String)
执行查询命令,并返回查询所返回的 DataSet 结果集。
Public methodExecuteQueryForDataSet(CommandType, String)
执行查询命令,并返回查询所返回的 DataSet 结果集。
Public methodExecuteQueryForDataSet(CommandType, String, Object)
执行查询命令,并返回查询所返回的 DataSet 结果集。
Public methodExecuteQueryForDataSet(CommandType, String, GenericSqlCommandParameter)
执行查询命令,并返回查询所返回的 DataSet 结果集。
Public methodExecuteQueryForDataTable(String)
执行查询命令,并返回查询所返回的 ExecuteQueryForDataTable 结果集。
Public methodExecuteQueryForDataTable(CommandType, String)
执行查询命令,并返回查询所返回的 ExecuteQueryForDataTable 结果集。
Public methodExecuteQueryForDataTable(CommandType, String, Object)
执行查询命令,并返回查询所返回的 DataSet 结果集。
Public methodExecuteQueryForDataTable(CommandType, String, GenericSqlCommandParameter)
执行查询命令,并返回查询所返回的 DataSet 结果集。
Public methodExecuteQueryForListT(String)
执行查询命令,并返回查询所返回的 DataSet 结果集。
Public methodExecuteQueryForListT(CommandType, String)
执行查询命令,并返回查询所返回的 DataSet 结果集。
Public methodExecuteQueryForListT(CommandType, String, Object)
执行查询命令,并返回查询所返回的 DataSet 结果集。
Public methodExecuteQueryForListT(CommandType, String, GenericSqlCommandParameter)
执行查询命令,并返回查询所返回的 DataSet 结果集。
Public methodExecuteQueryForObjectT(String)
执行查询命令,并返回查询所返回的 DataSet 结果集。
Public methodExecuteQueryForObjectT(CommandType, String)
执行查询命令,并返回查询所返回的 DataSet 结果集。
Public methodExecuteQueryForObjectT(CommandType, String, Object)
执行查询命令,并返回查询所返回的 DataSet 结果集。
Public methodExecuteQueryForObjectT(CommandType, String, GenericSqlCommandParameter)
执行查询命令,并返回查询所返回的 DataSet 结果集。
Public methodExecuteScalar(String)
执行查询命令,并返回查询所返回的结果集的第一行的第一列。
Public methodExecuteScalar(CommandType, String)
执行查询命令,并返回查询所返回的结果集的第一行的第一列。
Public methodExecuteScalar(CommandType, String, Object)
执行查询命令,并返回查询所返回的结果集的第一行的第一列。
Public methodExecuteScalar(CommandType, String, GenericSqlCommandParameter)
执行查询命令,并返回查询所返回的结果集的第一行的第一列。
Public methodExecuteScalar(Boolean, CommandType, String, Object)
执行查询命令,并返回查询所返回的结果集的第一行的第一列。
Public methodExecuteScalar(Boolean, CommandType, String, GenericSqlCommandParameter)
执行查询命令,并返回查询所返回的结果集的第一行的第一列。
Public methodExecuteScalar(CommandType, String, Object, Boolean)
执行查询命令,并返回查询所返回的结果集的第一行的第一列。
Public methodExecuteScalar(CommandType, String, GenericSqlCommandParameter, Boolean)
执行查询命令,并返回查询所返回的结果集的第一行的第一列。
Public methodExecuteScalar(Boolean, CommandType, String, Object, Boolean)
执行查询命令,并返回查询所返回的结果集的第一行的第一列。
Public methodExecuteScalar(Boolean, CommandType, String, GenericSqlCommandParameter, Boolean)
执行查询命令,并返回查询所返回的结果集的第一行的第一列。
Public methodFillPlaceholder(String, String, String)
填充占位符的内容
Public methodFillPlaceholder(String, String, Int32, String)
填充占位符的内容
Public methodFillPlaceholder(String, String, String, String)
填充占位符的内容
Protected methodFinalize
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodOpenConnection
打开连接
Public methodRollBackTransaction
回滚事务
Public methodToString (Inherited from Object.)
Top
See Also