EntityFrameworkEventSource 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Use OpenTelemetry metrics via EntityFrameworkMetricsData instead.
发出 EventSource Entity Framework 性能计数器数据。
[System.Obsolete("Use OpenTelemetry metrics via EntityFrameworkMetricsData instead.")]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class EntityFrameworkEventSource : System.Diagnostics.Tracing.EventSource
public sealed class EntityFrameworkEventSource : System.Diagnostics.Tracing.EventSource
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class EntityFrameworkEventSource : System.Diagnostics.Tracing.EventSource
[<System.Obsolete("Use OpenTelemetry metrics via EntityFrameworkMetricsData instead.")>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type EntityFrameworkEventSource = class
inherit EventSource
type EntityFrameworkEventSource = class
inherit EventSource
[<System.Runtime.CompilerServices.Nullable(0)>]
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() |
已过时.
指示即将保存更改。 |