DbCommandMethod Enum

Definition

Enum used by CommandEventData, an subclasses to indicate the method on DbCommand being used to execute the command.

C#
public enum DbCommandMethod
Inheritance
DbCommandMethod

Fields

Name Value Description
ExecuteNonQuery 0

The ExecuteNonQuery() or ExecuteNonQueryAsync() method.

ExecuteScalar 1

The ExecuteScalar() or ExecuteScalarAsync() method.

ExecuteReader 2

The ExecuteReader() or ExecuteReaderAsync() method.

Applies to

Product Versions
Entity Framework Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0