语言

CommandBehavior 枚举

定义

描述查询结果及其对数据库的影响。

public enum class CommandBehavior
public enum CommandBehavior
type CommandBehavior = 
Public Enum CommandBehavior
继承
CommandBehavior

字段

名称 值 说明
SingleResult 1

查询返回单个结果集。 执行查询可能会影响数据库状态。

SchemaOnly 2

查询仅返回列信息,不影响数据库状态。

注解

这些 CommandBehavior 值被 ExecuteReader 该类的方法 IDbCommand 及其衍生的类使用。

可以使用这些值的按位组合。

适用于