语言

DbCommandMethod 枚举

定义

子类用于 CommandEventData指示用于执行命令的方法 DbCommand 的枚举。

public enum DbCommandMethod
type DbCommandMethod = 
Public Enum DbCommandMethod
继承
DbCommandMethod

字段

名称 值 说明
ExecuteNonQuery 0

ExecuteNonQuery()方法或ExecuteNonQueryAsync()方法。

ExecuteScalar 1

ExecuteScalar()方法或ExecuteScalarAsync()方法。

ExecuteReader 2

ExecuteReader()方法或ExecuteReaderAsync()方法。

适用于