语言

DbCommandLogData 类

定义

注意

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

有关正在执行的记录 DbCommand 信息。

此类的实例通常由 Entity Framework 创建并传递给记录器,它不设计为直接在应用程序代码中构造。

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))
继承
DbCommandLogData
特性
实现

构造函数

名称 说明
DbCommandLogData(String, CommandType, Int32, IReadOnlyList<DbParameterLogData>, Nullable<Int64>)
已过时.

初始化 DbParameterLogData 类的新实例。

属性

名称 说明
CommandText
已过时.

获取正在执行的命令文本。

CommandTimeout
已过时.

获取为命令配置的超时。

CommandType
已过时.

获取正在执行的命令的类型。

ElapsedMilliseconds
已过时.

获取命令执行所花费的毫秒数(如果已完成)。

Parameters
已过时.

获取命令的参数。

方法

名称 说明
GetEnumerator()
已过时.

有关正在执行的记录 DbCommand 信息。

此类的实例通常由 Entity Framework 创建并传递给记录器,它不设计为直接在应用程序代码中构造。

显式接口实现

名称 说明
IEnumerable.GetEnumerator()
已过时.

有关正在执行的记录 DbCommand 信息。

此类的实例通常由 Entity Framework 创建并传递给记录器,它不设计为直接在应用程序代码中构造。

适用于