Share via


EntityFrameworkEventSource 類別

定義

發出 EventSource Entity Framework 效能計數器資料。

public sealed class EntityFrameworkEventSource : System.Diagnostics.Tracing.EventSource
type EntityFrameworkEventSource = class
    inherit EventSource
Public NotInheritable Class EntityFrameworkEventSource
Inherits EventSource
繼承
EntityFrameworkEventSource

備註

如需詳細資訊和範例 ,請參閱 EF Core 事件計數器

欄位

Log

的單一實例 EntityFrameworkEventSource

方法

CompiledQueryCacheHit()

表示在編譯的查詢快取中叫用,表示不需要進行查詢編譯。

CompiledQueryCacheMiss()

表示已編譯查詢快取中的遺漏,表示需要進行查詢編譯。

DbContextDisposing()

表示 DbContext 正在處置實例。

DbContextInitializing()

表示正在初始化新的 DbContext 實例。

ExecutionStrategyOperationFailure()

表示失敗 (所 IExecutionStrategy 執行的作業,而且可能會重試) 。

OptimisticConcurrencyFailure()

表示已發生開放式平行存取失敗。

QueryExecuting()

表示查詢即將開始執行。

SavingChanges()

表示即將儲存變更。

適用於