RelationalEventId Class

Definition

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

These IDs are also used with WarningsConfigurationBuilder to configure the behavior of warnings.

public static class RelationalEventId
type RelationalEventId = class
Public Class RelationalEventId
Inheritance
RelationalEventId

Fields

AmbientTransactionEnlisted

Entity Framework enlisted the connection in an ambient transaction.

This event is in the DbLoggerCategory.Database.Transaction category.

This event uses the TransactionEnlistedEventData payload when used with a DiagnosticSource.

AmbientTransactionWarning

An application may have expected an ambient transaction to be used when it was actually ignored.

This event is in the DbLoggerCategory.Database.Transaction category.

This event uses the ConnectionEventData payload when used with a DiagnosticSource.

BatchReadyForExecution

Update commands were batched and are now ready for execution MinBatchSize(Int32).

This event is in the DbLoggerCategory.Update category.

This event uses the BatchEventData payload when used with a DiagnosticSource.

BatchSmallerThanMinBatchSize

Update commands were not batched because there were fewer than MinBatchSize(Int32).

This event is in the DbLoggerCategory.Update category.

This event uses the MinBatchSizeEventData payload when used with a DiagnosticSource.

BoolWithDefaultWarning

A bool property is configured with a store-generated default.

This event is in the DbLoggerCategory.Model.Validation category.

This event uses the PropertyEventData payload when used with a DiagnosticSource.

CommandCreated

A DbCommand has been created.

This event is in the DbLoggerCategory.Database.Command category.

This event uses the CommandEndEventData payload when used with a DiagnosticSource.

CommandCreating

A DbCommand is being created.

This event is in the DbLoggerCategory.Database.Command category.

This event uses the CommandCorrelatedEventData payload when used with a DiagnosticSource.

CommandError

An error occurred while a database command was executing.

This event is in the DbLoggerCategory.Database.Command category.

This event uses the CommandErrorEventData payload when used with a DiagnosticSource.

CommandExecuted

A database command has been executed.

This event is in the DbLoggerCategory.Database.Command category.

This event uses the CommandExecutedEventData payload when used with a DiagnosticSource.

CommandExecuting

A database command is executing.

This event is in the DbLoggerCategory.Database.Command category.

This event uses the CommandEventData payload when used with a DiagnosticSource.

ConnectionClosed

A database connection has been closed.

This event is in the DbLoggerCategory.Database.Connection category.

This event uses the ConnectionEndEventData payload when used with a DiagnosticSource.

ConnectionClosing

A database connection is closing.

This event is in the DbLoggerCategory.Database.Connection category.

This event uses the ConnectionEventData payload when used with a DiagnosticSource.

ConnectionError

A error occurred while opening or using a database connection.

This event is in the DbLoggerCategory.Database.Connection category.

This event uses the ConnectionErrorEventData payload when used with a DiagnosticSource.

ConnectionOpened

A database connection has been opened.

This event is in the DbLoggerCategory.Database.Connection category.

This event uses the ConnectionEndEventData payload when used with a DiagnosticSource.

ConnectionOpening

A database connection is opening.

This event is in the DbLoggerCategory.Database.Connection category.

This event uses the ConnectionEventData payload when used with a DiagnosticSource.

DataReaderDisposing

A database data reader has been disposed.

This event is in the DbLoggerCategory.Database.Command category.

This event uses the DataReaderDisposingEventData payload when used with a DiagnosticSource.

ExplicitTransactionEnlisted

The connection was explicitly enlisted in a transaction.

This event is in the DbLoggerCategory.Database.Transaction category.

This event uses the TransactionEnlistedEventData payload when used with a DiagnosticSource.

MigrateUsingConnection

Migrations is using a database connection.

This event is in the DbLoggerCategory.Migrations category.

This event uses the MigratorConnectionEventData payload when used with a DiagnosticSource.

MigrationApplying

A migration is being applied.

This event is in the DbLoggerCategory.Migrations category.

This event uses the MigrationEventData payload when used with a DiagnosticSource.

MigrationAttributeMissingWarning

A MigrationAttribute isn't specified on the class.

This event is in the DbLoggerCategory.Migrations category.

This event uses the MigrationTypeEventData payload when used with a DiagnosticSource.

MigrationGeneratingDownScript

Migrations is generating a "down" script.

This event is in the DbLoggerCategory.Migrations category.

This event uses the MigrationScriptingEventData payload when used with a DiagnosticSource.

MigrationGeneratingUpScript

Migrations is generating an "up" script.

This event is in the DbLoggerCategory.Migrations category.

This event uses the MigrationScriptingEventData payload when used with a DiagnosticSource.

MigrationReverting

A migration is being reverted.

This event is in the DbLoggerCategory.Migrations category.

This event uses the MigrationEventData payload when used with a DiagnosticSource.

MigrationsNotApplied

Migrations weren't applied.

This event is in the DbLoggerCategory.Migrations category.

This event uses the MigratorEventData payload when used with a DiagnosticSource.

MigrationsNotFound

Migrations weren't found.

This event is in the DbLoggerCategory.Migrations category.

This event uses the MigrationAssemblyEventData payload when used with a DiagnosticSource.

ModelValidationKeyDefaultValueWarning

A single database default column value has been set on a key column.

This event is in the DbLoggerCategory.Model.Validation category.

This event uses the PropertyEventData payload when used with a DiagnosticSource.

QueryClientEvaluationWarning

Part of a query is being evaluated on the client instead of on the database server.

This event is in the DbLoggerCategory.Query category.

QueryPossibleExceptionWithAggregateOperator

A query is using a possibly throwing aggregate operation in a sub-query.

This event is in the DbLoggerCategory.Query category.

QueryPossibleExceptionWithAggregateOperatorWarning

A query is using a possibly throwing aggregate operation in a sub-query.

This event is in the DbLoggerCategory.Query category.

QueryPossibleUnintendedUseOfEqualsWarning

A query is using equals comparisons in a possibly unintended way.

This event is in the DbLoggerCategory.Query category.

This event uses the ExpressionEventData payload when used with a DiagnosticSource.

TransactionCommitted

A database transaction has been committed.

This event is in the DbLoggerCategory.Database.Transaction category.

This event uses the TransactionEndEventData payload when used with a DiagnosticSource.

TransactionCommitting

A database transaction is being committed.

This event is in the DbLoggerCategory.Database.Transaction category.

This event uses the TransactionEventData payload when used with a DiagnosticSource.

TransactionDisposed

A database transaction has been disposed.

This event is in the DbLoggerCategory.Database.Transaction category.

This event uses the TransactionEventData payload when used with a DiagnosticSource.

TransactionError

An error has occurred while using. committing, or rolling back a database transaction.

This event is in the DbLoggerCategory.Database.Transaction category.

This event uses the TransactionErrorEventData payload when used with a DiagnosticSource.

TransactionRolledBack

A database transaction has been rolled back.

This event is in the DbLoggerCategory.Database.Transaction category.

This event uses the TransactionEndEventData payload when used with a DiagnosticSource.

TransactionRollingBack

A database transaction is being rolled back.

This event is in the DbLoggerCategory.Database.Transaction category.

This event uses the TransactionEventData payload when used with a DiagnosticSource.

TransactionStarted

A database transaction has been started.

This event is in the DbLoggerCategory.Database.Transaction category.

This event uses the TransactionEndEventData payload when used with a DiagnosticSource.

TransactionStarting

A database transaction is starting.

This event is in the DbLoggerCategory.Database.Transaction category.

This event uses the TransactionStartingEventData payload when used with a DiagnosticSource.

TransactionUsed

Entity Framework started using an already existing database transaction.

This event is in the DbLoggerCategory.Database.Transaction category.

This event uses the TransactionEventData payload when used with a DiagnosticSource.

ValueConversionSqlLiteralWarning

A SQL literal is being generated for a value that is using a value conversion.

This event is in the DbLoggerCategory.Query category.

Applies to