Share via


DbCommandLogData Class

Definition

Caution

This class is obsolete. It will be removed in a future release.

Logging information about a DbCommand that is being executed.

Instances of this class are typically created by Entity Framework and passed to loggers, it is not designed to be directly constructed in your application code.

public class DbCommandLogData
[System.Obsolete("This class is obsolete. It will be removed in a future release.")]
public class DbCommandLogData : System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>
type DbCommandLogData = class
[<System.Obsolete("This class is obsolete. It will be removed in a future release.")>]
type DbCommandLogData = class
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
Public Class DbCommandLogData
Public Class DbCommandLogData
Implements IEnumerable(Of KeyValuePair(Of String, Object))
Inheritance
DbCommandLogData
Attributes
Implements

Constructors

DbCommandLogData(String, CommandType, Int32, IReadOnlyList<DbParameterLogData>, Nullable<Int64>)

Initializes a new instance of the DbParameterLogData class.

Properties

CommandText

Gets the command text being executed.

CommandTimeout

Gets the timeout configured for the command.

CommandType

Gets the type of command being executed.

ElapsedMilliseconds

Gets how many milliseconds the command took to execute (if it has completed).

Parameters

Gets the parameters for the command.

Methods

GetEnumerator()

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Applies to