Namespace Microsoft.EntityFrameworkCore.Diagnostics
Classes
- BinaryExpressionEventData
A DiagnosticSource event payload class for events that have a query expression.
- CascadeDeleteEventData
A DiagnosticSource event payload class for events that indicate an entity is being deleted because its parent entity has been deleted.
- CascadeDeleteOrphanEventData
A DiagnosticSource event payload class for events that indicate an entity is being deleted because its required relationship to a parent has been severed.
- CollectionChangedEventData
A DiagnosticSource event payload class for events that indicate a collection navigation property has had entities added and/or removed.
- ComplexPropertyEventData
A DiagnosticSource event payload class for events that have a property.
- ConcurrencyExceptionEventData
A DiagnosticSource event payload used when a DbUpdateConcurrencyException is being thrown.
- ContextInitializedEventData
A DiagnosticSource event payload class for context initialization events.
- CoreEventId
Event IDs for events that correspond to messages logged to an ILogger and events sent to a DiagnosticSource.
- CoreLoggerExtensions
This class contains static methods used by EF Core internals and database providers to write information to an ILogger and a DiagnosticListener for well-known events.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
- CoreStrings
String resources used in EF exceptions, etc.
These strings are exposed publicly for use by database providers and extensions. It is unusual for application code to need these strings.
- DbContextErrorEventData
A DiagnosticSource event payload class for error events that reference a DbContext.
- DbContextEventData
A DiagnosticSource event payload class for events that reference a DbContext.
- DbContextTypeErrorEventData
A DiagnosticSource event payload class for error events that reference a DbContext type.
- DbContextTypeEventData
A DiagnosticSource event payload class for events that reference a DbContext type.
- EntityEntryEventData
A DiagnosticSource event payload class for events that reference a EntityEntry.
- EntityTypeEventData
A DiagnosticSource event payload class for events that have an entity type.
- EventData
A base class for all Entity Framework DiagnosticSource event payloads.
- EventDefinition
Defines metadata for an event with no parameters and a cached delegate to log the event with reduced allocations.
- EventDefinitionBase
Base class for event definitions.
- EventDefinition<TParam>
Defines metadata for an event with one parameter and a cached delegate to log the event with reduced allocations.
- EventDefinition<TParam1, TParam2>
Defines metadata for an event with three parameters and a cached delegate to log the event with reduced allocations.
- EventDefinition<TParam1, TParam2, TParam3>
Defines metadata for an event with three parameters and a cached delegate to log the event with reduced allocations.
- EventDefinition<TParam1, TParam2, TParam3, TParam4>
Defines metadata for an event with three parameters and a cached delegate to log the event with reduced allocations.
- EventDefinition<TParam1, TParam2, TParam3, TParam4, TParam5>
Defines metadata for an event with three parameters and a cached delegate to log the event with reduced allocations.
- EventDefinition<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6>
Defines metadata for an event with three parameters and a cached delegate to log the event with reduced allocations.
- ExecutionStrategyEventData
The DiagnosticSource event payload for CoreEventId execution strategy events.
- ExpressionEventData
A DiagnosticSource event payload class for events that have a query expression.
- FallbackEventDefinition
Defines metadata for an event with more than six parameters such that it has to have special handling.
- ForeignKeyCandidateEventData
A DiagnosticSource event payload class for incompatible foreign key properties.
- ForeignKeyEventData
A DiagnosticSource event payload class for events that have a foreign key.
- IgnoringIdentityResolutionInterceptor
A IIdentityResolutionInterceptor that ignores the new instance and retains property values from the existing tracked instance.
- InterceptorAggregator<TInterceptor>
Abstract base class for implementations of the IInterceptorAggregator service.
- InvalidIncludePathEventData
A DiagnosticSource event payload class for events that have invalid include path information.
- KeyEventData
A DiagnosticSource event payload class for events that have a key.
- LazyLoadingEventData
A DiagnosticSource event payload class for events from Microsoft.EntityFrameworkCore.Infrastructure.ILazyLoader
- LoggerCategory<T>
Generic helper class used to implement the Name property.
- LoggingDefinitions
Contains placeholders for caching of EventDefinitionBase.
This class is public so that it can be inherited by database providers to add caching for their events. It should not be used for any other purpose.
- NavigationBaseEventData
A DiagnosticSource event payload class for events that have an INavigationBase.
- NavigationEventData
A DiagnosticSource event payload class for events that have an INavigation.
- PropertyChangedEventData
A DiagnosticSource event payload class for events that indicate a changed property value.
- PropertyEventData
A DiagnosticSource event payload class for events that have a property.
- PropertyValueEventData
A DiagnosticSource event payload class for events that indicate a property value.
- QueryExpressionEventData
A DiagnosticSource event payload class for events that have a query expression.
- ReferenceChangedEventData
A DiagnosticSource event payload class for events that indicate a changed property value.
- SaveChangesCompletedEventData
A DiagnosticSource event payload class for events that indicate SaveChanges() has completed.
- SaveChangesEventData
A DiagnosticSource event payload class for events that specify the entities being saved and the rows affected.
- SaveChangesInterceptor
Abstract base class for ISaveChangesInterceptor for use when implementing a subset of the interface methods.
- ServiceProviderDebugInfoEventData
A DiagnosticSource event payload class for events that reference debug information on service provider creation.
- ServiceProviderEventData
A DiagnosticSource event payload class for events that reference a IServiceProvider container.
- ServiceProvidersEventData
A DiagnosticSource event payload class for events that reference multiple IServiceProvider containers.
- SharedDependentEntityEventData
A DiagnosticSource event payload class for events that reference two IEntityType instances.
- SkipCollectionChangedEventData
A DiagnosticSource event payload class for events that indicate a skip collection navigation property has had entities added and/or removed.
- SkipNavigationEventData
A DiagnosticSource event payload class for events that have an ISkipNavigation.
- StateChangedEventData
A DiagnosticSource event payload class for events that indicate a change of a tracked entity from one EntityState to another.
- StoredProcedurePropertyEventData
A DiagnosticSource event payload class for events that have involving mapping of a property to a stored procedure.
- TwoPropertyBaseCollectionsEventData
A DiagnosticSource event payload class for events that have two property collections.
- TwoUnmappedPropertyCollectionsEventData
A DiagnosticSource event payload class for events that have two unmapped property collections.
- TypeEventData
A DiagnosticSource event payload class for events that reference a Type.
- UniquifiedPropertyEventData
A DiagnosticSource event payload class for events that have a property that has been uniquified.
- UpdateEntryEventData
A DiagnosticSource event payload class for events that have an entity update entry.
- UpdatingIdentityResolutionInterceptor
A IIdentityResolutionInterceptor that copies property values from the new entity instance into the tracked entity instance.
- ValueConverterEventData
A DiagnosticSource event payload class for events that have a ValueConverter.
- WarningsConfiguration
Represents configuration for which warnings should be thrown, logged, or ignored. by database providers or extensions. These options are set using WarningsConfigurationBuilder.
- WarningsConfigurationBuilder
Configures the runtime behavior of events generated by Entity Framework. You can set a default behavior and behaviors for each event ID.
This class is used within the ConfigureWarnings(Action<WarningsConfigurationBuilder>) API and it is not designed to be directly constructed in your application code.
Structs
- IdentityResolutionInterceptionData
A parameter object passed to IIdentityResolutionInterceptor methods.
- InstantiationBindingInterceptionData
A parameter object passed to IInstantiationBindingInterceptor methods.
- InterceptionResult
Represents a result from an IInterceptor such as an ISaveChangesInterceptor to allow suppression of the normal operation being intercepted.
- InterceptionResult<TResult>
Represents a result from an IInterceptor such as an ISaveChangesInterceptor to allow suppression of the normal operation being intercepted.
- MaterializationInterceptionData
A parameter object passed to IMaterializationInterceptor methods containing data about the instance being materialized.
Interfaces
- ICollectionChangedEventData
An interface implemented by any EventData subclass that represents a change to either a skip collection navigation or a regular collection navigation.
- IDbContextLogger
A simple logging interface for Entity Framework events. Used by LogTo(Action<string>, LogLevel, DbContextLoggerOptions?)
- IDiagnosticsLogger
Combines ILogger and DiagnosticSource for use by all EF Core logging so that events can be sent to both ILogger for ASP.NET and DiagnosticSource for everything else.
- IDiagnosticsLogger<TLoggerCategory>
Combines ILogger and DiagnosticSource for use by all EF Core logging so that events can be sent to both ILogger for ASP.NET and DiagnosticSource for everything else.
- IErrorEventData
An interface implemented by any EventData subclass that represents an error event with an Exception.
- IIdentityResolutionInterceptor
Allows interception of identity resolution conflicts when the DbContext starts tracking new entity instances.
- IInstantiationBindingInterceptor
A ISingletonInterceptor used to modify the InstantiationBinding used when creating entity instances.
- IInterceptor
The base interface for all Entity Framework interceptors.
- IInterceptorAggregator
A service to resolve a single IInterceptor from all those registered on the DbContext or in the internal service provider.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
- IInterceptors
A service that resolves a single IInterceptor from all those registered on the DbContext or in the internal service provider.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
- ILoggingOptions
Options set at the IServiceProvider singleton level to control how messages are logged and/or thrown in exceptions.
- IMaterializationInterceptor
A ISingletonInterceptor used to intercept the various parts of object creation and initialization when Entity Framework is creating an object, typically from data returned by a query.
- INavigationBaseEventData
A common interface for event payload classes that have an INavigationBase.
- IQueryExpressionInterceptor
Allows interception of query expression trees and resulting compiled delegates.
- ISaveChangesInterceptor
Allows interception of the
and methods.
- ISingletonInterceptor
The base interface for all Entity Framework interceptors that are registered as Singleton services. This means a single instance is used by many DbContext instances. The implementation must be thread-safe.
Enums
- DbContextLoggerOptions
Formatting options for use with FormattingDbContextLogger and LogTo(Action<string>, LogLevel, DbContextLoggerOptions?).