Class EntityFrameworkEventSource
- Namespace
- Microsoft.EntityFrameworkCore.Infrastructure
- Assembly
- Microsoft.EntityFrameworkCore.dll
An EventSource emitting Entity Framework performance counter data.
public sealed class EntityFrameworkEventSource : EventSource, IDisposable
- Inheritance
-
EntityFrameworkEventSource
- Implements
- Inherited Members
Remarks
See EF Core event counters for more information and examples.
Fields
Log
The singleton instance of EntityFrameworkEventSource.
public static readonly EntityFrameworkEventSource Log
Field Value
Remarks
See EF Core event counters for more information and examples.
Methods
CompiledQueryCacheHit()
Indicates a hit in the compiled query cache, signifying that query compilation will not need to occur.
public void CompiledQueryCacheHit()
Remarks
See EF Core event counters for more information and examples.
CompiledQueryCacheMiss()
Indicates a miss in the compiled query cache, signifying that query compilation will need to occur.
public void CompiledQueryCacheMiss()
Remarks
See EF Core event counters for more information and examples.
DbContextDisposing()
Indicates that a DbContext instance is being disposed.
public void DbContextDisposing()
Remarks
See EF Core event counters for more information and examples.
DbContextInitializing()
Indicates that a new DbContext instance is being initialized.
public void DbContextInitializing()
Remarks
See EF Core event counters for more information and examples.
ExecutionStrategyOperationFailure()
Indicates that an operation executed by an IExecutionStrategy failed (and may be retried).
public void ExecutionStrategyOperationFailure()
Remarks
See EF Core event counters for more information and examples.
OnEventCommand(EventCommandEventArgs)
protected override void OnEventCommand(EventCommandEventArgs command)
Parameters
command
EventCommandEventArgs
OptimisticConcurrencyFailure()
Indicates that an optimistic concurrency failure has occurred.
public void OptimisticConcurrencyFailure()
Remarks
See EF Core event counters for more information and examples.
QueryExecuting()
Indicates that a query is about to begin execution.
public void QueryExecuting()
Remarks
See EF Core event counters for more information and examples.
SavingChanges()
Indicates that changes are about to be saved.
public void SavingChanges()
Remarks
See EF Core event counters for more information and examples.