語言

DbCommandMethod 列舉

定義

枚舉由 CommandEventData使用 ,子類別用來表示 DbCommand 執行指令的方法。

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

欄位

名稱 值 Description
ExecuteNonQuery 0

ExecuteNonQuery()或 ExecuteNonQueryAsync() 方法。

ExecuteScalar 1

ExecuteScalar()或 ExecuteScalarAsync() 方法。

ExecuteReader 2

ExecuteReader()或 ExecuteReaderAsync() 方法。

適用於