DbCommandLogData 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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
- 屬性
- 實作
建構函式
| 名稱 | Description |
|---|---|
| DbCommandLogData(String, CommandType, Int32, IReadOnlyList<DbParameterLogData>, Nullable<Int64>) |
已淘汰.
初始化 DbParameterLogData 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| CommandText |
已淘汰.
會執行指令文字。 |
| CommandTimeout |
已淘汰.
設定指令的超時。 |
| CommandType |
已淘汰.
會取得執行的指令類型。 |
| ElapsedMilliseconds |
已淘汰.
會顯示指令執行所需幾毫秒(如果指令已完成)。 |
| Parameters |
已淘汰.
取得指令的參數。 |
方法
| 名稱 | Description |
|---|---|
| GetEnumerator() |
已淘汰.
記錄正在執行的資訊 DbCommand 。 這個類別的實例通常由 Entity Framework 建立並交給日誌記錄器,並非設計成直接在你的應用程式程式碼中建構。 |
明確介面實作
| 名稱 | Description |
|---|---|
| IEnumerable.GetEnumerator() |
已淘汰.
記錄正在執行的資訊 DbCommand 。 這個類別的實例通常由 Entity Framework 建立並交給日誌記錄器,並非設計成直接在你的應用程式程式碼中建構。 |