Table of Contents

Namespace Microsoft.EntityFrameworkCore.Diagnostics

Classes

BatchEventData

The DiagnosticSource event payload for RelationalEventId batch events.

ColumnsEventData

A DiagnosticSource event payload class for events that have columns.

CommandCorrelatedEventData

The DiagnosticSource event payload for events correlated with a DbCommand.

CommandEndEventData

The DiagnosticSource event payload for RelationalEventId command end events.

CommandErrorEventData

The DiagnosticSource event payload for CommandError.

CommandEventData

The DiagnosticSource event payload for RelationalEventId command events.

CommandExecutedEventData

The DiagnosticSource event payload for CommandExecuted.

ConnectionCreatedEventData

The DiagnosticSource event payload for ConnectionCreated events.

ConnectionCreatingEventData

The DiagnosticSource event payload for ConnectionCreating events.

ConnectionEndEventData

The DiagnosticSource event payload class for RelationalEventId connection ending events.

ConnectionErrorEventData

The DiagnosticSource event payload for ConnectionError.

ConnectionEventData

The DiagnosticSource event payload base class for RelationalEventId connection events.

DataReaderClosingEventData

DiagnosticSource event payload for DataReaderClosing.

DataReaderDisposingEventData

DiagnosticSource event payload for DataReaderDisposing.

DataReaderEventData

DiagnosticSource event payload for DataReaderClosing.

DbCommandInterceptor

Abstract base class for IDbCommandInterceptor for use when implementing a subset of the interface methods.

DbConnectionInterceptor

Abstract base class for IDbConnectionInterceptor for use when implementing a subset of the interface methods.

DbTransactionInterceptor

Abstract base class for IDbTransactionInterceptor for use when implementing a subset of the interface methods.

EntityTypeSchemaEventData

The DiagnosticSource event payload base class for events that reference an entity type and a schema

IndexEventData

A DiagnosticSource event payload class for the events involving an invalid index.

IndexWithPropertiesEventData

A DiagnosticSource event payload class for the IndexPropertiesMappedToNonOverlappingTables event.

IndexWithPropertyEventData

A DiagnosticSource event payload class for the events involving an invalid property name on an index.

MigrationAssemblyEventData

The DiagnosticSource event payload for RelationalEventId migrations assembly events.

MigrationColumnOperationEventData

The DiagnosticSource event payload for events that reference a Migrations column operation.

MigrationEventData

The DiagnosticSource event payload for RelationalEventId events of a specific migration.

MigrationScriptingEventData

The DiagnosticSource event payload for RelationalEventId migration scripting events.

MigrationTypeEventData

The DiagnosticSource event payload for RelationalEventId migration events.

MigratorConnectionEventData

The DiagnosticSource event payload for RelationalEventId migration connection events.

MigratorEventData

The DiagnosticSource event payload for RelationalEventId migration events.

MinBatchSizeEventData

The DiagnosticSource event payload for RelationalEventId min batch size events.

RelationalConcurrencyExceptionEventData

A DiagnosticSource event payload used when a Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException is being thrown from a relational database provider.

RelationalEventId

Event IDs for relational events that correspond to messages logged to an ILogger and events sent to a DiagnosticSource.

RelationalLoggerExtensions

This class contains static methods used by EF Core internals and relational 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.

RelationalLoggingDefinitions

Contains placeholders for caching of Microsoft.EntityFrameworkCore.Diagnostics.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.

RelationalStrings

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.

SequenceEventData

The DiagnosticSource event payload base class for events that reference a sequence.

TransactionEndEventData

The DiagnosticSource event payload base class for RelationalEventId transaction end events.

TransactionEnlistedEventData

The DiagnosticSource event payload for RelationalEventId transaction enlisted events.

TransactionErrorEventData

The DiagnosticSource event payload base class for RelationalEventId transaction error events.

TransactionEventData

The DiagnosticSource event payload base class for RelationalEventId transaction events.

TransactionStartingEventData

The DiagnosticSource event payload base class for RelationalEventId transaction events.

TwoSqlExpressionsEventData

The DiagnosticSource event payload base class for events that references two SqlExpression.

Interfaces

IDbCommandInterceptor

Allows interception of commands sent to a relational database.

IDbConnectionInterceptor

Allows interception of operations on DbConnection.

IDbTransactionInterceptor

Allows interception of operations related to a DbTransaction.

IRelationalCommandDiagnosticsLogger

An Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<> with some extra functionality suited for high-performance logging.

IRelationalConnectionDiagnosticsLogger

An Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<> with some extra functionality suited for high-performance logging.

Enums

CommandSource

Enum used by CommandEventData, and subclasses to indicate the source of the DbCommand being used to execute the command.

DbCommandMethod

Enum used by CommandEventData, an subclasses to indicate the method on DbCommand being used to execute the command.