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

AllIndexPropertiesNotToMappedToAnyTable

An index specifies properties all of which are not mapped to a column in any table.

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

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

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.

BatchExecutorFailedToReleaseSavepoint

An error occurred while the batch executor was releasing a transaction savepoint.

This event is in the DbLoggerCategory.Update category.

BatchExecutorFailedToRollbackToSavepoint

An error occurred while the batch executor was rolling back the transaction to a savepoint, after an exception occured.

This event is in the DbLoggerCategory.Update category.

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.

CreatedTransactionSavepoint

A database transaction savepoint has been created.

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

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

CreatingTransactionSavepoint

A database transaction savepoint is being created.

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

This event uses the TransactionEventData 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.

ForeignKeyPropertiesMappedToUnrelatedTables

A foreign key specifies properties which don't map to the related tables.

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

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

IndexPropertiesBothMappedAndNotMappedToTable

An index specifies properties some of which are mapped and some of which are not mapped to a column in a table.

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

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

IndexPropertiesMappedToNonOverlappingTables

An index specifies properties which map to columns on non-overlapping tables.

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

This event uses the IndexWithPropertiesEventData 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.

MultipleCollectionIncludeWarning

A query is loading multiple related collections without configuring a QuerySplittingBehavior.

This event is in the DbLoggerCategory.Query category.

QueryClientEvaluationWarning
Obsolete.

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
Obsolete.

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 TwoSqlExpressionsEventData payload when used with a DiagnosticSource.

ReleasedTransactionSavepoint

A database transaction savepoint has been released.

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

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

ReleasingTransactionSavepoint

A database transaction savepoint is being released.

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

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

RolledBackToTransactionSavepoint

A database transaction has been rolled back to a savepoint.

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

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

RollingBackToTransactionSavepoint

A database transaction is being rolled back to a savepoint.

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

This event uses the TransactionEventData 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