CoreEventId Class

Definition

Event IDs for 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 CoreEventId
type CoreEventId = class
Public Class CoreEventId
Inheritance
CoreEventId

Fields

CascadeDelete

An entity is being deleted or detached because its parent was deleted.

This event is in the DbLoggerCategory.Update category.

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

CascadeDeleteOrphan

An entity is being deleted or detached because the required relationship to its parent was severed.

This event is in the DbLoggerCategory.Update category.

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

CollectionChangeDetected

DetectChanges has detected entities were added and/or removed from a collection navigation property.

This event is in the DbLoggerCategory.ChangeTracking category.

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

CollectionWithoutComparer

A property has a collection or enumeration type with a value converter but with no value comparer.

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

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

ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning

The ForeignKeyAttribute specified on the navigation doesn't match the ForeignKeyAttribute specified on the property.

This event is in the DbLoggerCategory.Model category.

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

ConflictingShadowForeignKeysWarning

The properties that best match the foreign key convention are already used by a different foreign key.

This event is in the DbLoggerCategory.Model category.

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

ContextDisposed

The DbContext is being disposed.

This event is in the DbLoggerCategory.Infrastructure category.

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

ContextInitialized

A DbContext was initialized.

This event is in the DbLoggerCategory.Infrastructure category.

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

CoreBaseId

The lower-bound for event IDs used by any Entity Framework or provider code.

DetachedLazyLoadingWarning

An attempt was made to lazy-load a property from a detached/no-tracking entity.

This event is in the DbLoggerCategory.Infrastructure category.

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

DetectChangesCompleted

DetectChanges has completed.

This event is in the DbLoggerCategory.ChangeTracking category.

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

DetectChangesStarting

DetectChanges is starting.

This event is in the DbLoggerCategory.ChangeTracking category.

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

DuplicateDependentEntityTypeInstanceWarning

The same entity is being tracked as a different weak entity type. This event is in the DbLoggerCategory.Update category.

ExecutionStrategyRetrying

A transient exception has been encountered during execution and the operation will be retried.

This event is in the DbLoggerCategory.Infrastructure category.

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

FirstWithoutOrderByAndFilterWarning

A query uses First/FirstOrDefault operation without OrderBy and filter which may lead to unpredictable results.

This event is in the DbLoggerCategory.Query category.

ForeignKeyAttributesOnBothNavigationsWarning

Navigations separated into two relationships as ForeignKeyAttribute was specified on navigations on both sides.

This event is in the DbLoggerCategory.Model category.

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

ForeignKeyAttributesOnBothPropertiesWarning

Navigations separated into two relationships as ForeignKeyAttribute was specified on properties on both sides.

This event is in the DbLoggerCategory.Model category.

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

ForeignKeyChangeDetected

DetectChanges has detected a change in a foreign key property value.

This event is in the DbLoggerCategory.ChangeTracking category.

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

IncludeIgnoredWarning

A navigation was ignored while compiling a query.

This event is in the DbLoggerCategory.Query category.

IncompatibleMatchingForeignKeyProperties

The best match for foreign key properties are incompatible with the principal key.

This event is in the DbLoggerCategory.Model category.

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

LazyLoadOnDisposedContextWarning

An attempt was made to lazy-load a property after the DbContext had been disposed.

This event is in the DbLoggerCategory.Infrastructure category.

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

ManyServiceProvidersCreatedWarning

Many service providers were created in a single app domain.

This event is in the DbLoggerCategory.Infrastructure category.

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

MultipleInversePropertiesSameTargetWarning

There are multiple navigations with InversePropertyAttribute that point to the same inverse navigation.

This event is in the DbLoggerCategory.Model category.

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

MultipleNavigationProperties

There are multiple properties that could be navigations to the same type.

This event is in the DbLoggerCategory.Model category.

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

MultiplePrimaryKeyCandidates

There are multiple properties that could be used as the primary key.

This event is in the DbLoggerCategory.Model category.

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

NavigationIncluded

A navigation was included in the query.

This event is in the DbLoggerCategory.Query category.

NavigationLazyLoading

A navigation property is being lazy-loaded.

This event is in the DbLoggerCategory.Infrastructure category.

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

NonDefiningInverseNavigationWarning

There navigation that InversePropertyAttribute points to is not the defining navigation.

This event is in the DbLoggerCategory.Model category.

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

NonNullableInverted

The entity type with the navigation property that has non-nullability was configured as the dependent side in the relationship.

This event is in the DbLoggerCategory.Model category.

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

NonNullableReferenceOnBothNavigations

Navigations separated into two relationships as non-nullability was specified on both navigations.

This event is in the DbLoggerCategory.Model category.

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

NonNullableReferenceOnDependent

The non-nullability of the navigation property to the dependent entity was ignored.

This event is in the DbLoggerCategory.Model category.

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

NonOwnershipInverseNavigationWarning

There navigation that InversePropertyAttribute points to is not the defining navigation.

This event is in the DbLoggerCategory.Model category.

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

OptimisticConcurrencyException

An OptimisticConcurrencyException was thrown during the call to SaveChanges()

This event is in the DbLoggerCategory.Update category.

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

PossibleUnintendedCollectionNavigationNullComparisonWarning

Possible unintended comparison of collection navigation to null.

This event is in the DbLoggerCategory.Query category.

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

PossibleUnintendedReferenceComparisonWarning

Possible unintended reference comparison.

This event is in the DbLoggerCategory.Query category.

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

PropertyChangeDetected

DetectChanges has detected a change in a property value.

This event is in the DbLoggerCategory.ChangeTracking category.

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

ProviderBaseId

The lower-bound for event IDs used only by database providers.

ProviderDesignBaseId

The lower-bound for event IDs used only by database provider design-time and tooling.

QueryExecutionPlanned

A query is planned for execution.

This event is in the DbLoggerCategory.Query category.

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

QueryIterationFailed

An error occurred while processing the results of a query.

This event is in the DbLoggerCategory.Query category.

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

QueryModelCompiling

A query model is being compiled.

This event is in the DbLoggerCategory.Query category.

QueryModelOptimized

A query model was optimized.

This event is in the DbLoggerCategory.Query category.

RedundantForeignKeyWarning

The configured IForeignKey is redundant.

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

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

RedundantIndexRemoved

An index was not created as the properties are already covered.

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

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

ReferenceChangeDetected

DetectChanges has detected a change to the entity references by another entity.

This event is in the DbLoggerCategory.ChangeTracking category.

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

RelationalBaseId

The lower-bound for event IDs used by any relational database provider.

RequiredAttributeInverted

The entity type with the navigation property that has the RequiredAttribute was configured as the dependent side in the relationship.

This event is in the DbLoggerCategory.Model category.

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

RequiredAttributeOnBothNavigations

Navigations separated into two relationships as RequiredAttribute was specified on both navigations.

This event is in the DbLoggerCategory.Model category.

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

RequiredAttributeOnCollection

The RequiredAttribute on the collection navigation property was ignored.

This event is in the DbLoggerCategory.Model category.

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

RequiredAttributeOnDependent

The RequiredAttribute on the navigation property to the dependent entity was ignored.

This event is in the DbLoggerCategory.Model category.

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

RowLimitingOperationWithoutOrderByWarning

A query uses a row limiting operation (Skip/Take) without OrderBy which may lead to unpredictable results.

This event is in the DbLoggerCategory.Query category.

SaveChangesCompleted

SaveChanges() or one of its overloads has completed.

This event is in the DbLoggerCategory.Update category.

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

SaveChangesFailed

An error occurred while attempting to save changes to the database.

This event is in the DbLoggerCategory.Update category.

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

SaveChangesStarting

SaveChanges() or one of its overloads started.

This event is in the DbLoggerCategory.Update category.

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

SensitiveDataLoggingEnabledWarning

A warning indicating that sensitive data logging is enabled and may be logged.

This event may be in different categories depending on where sensitive data is being logged.

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

ServiceProviderCreated

A service provider was created for internal use by Entity Framework.

This event is in the DbLoggerCategory.Infrastructure category.

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

ServiceProviderDebugInfo

Provides debug information for why a new internal service provider was created.

This event is in the DbLoggerCategory.Infrastructure category.

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

ShadowPropertyCreated

A shadow property has been created.

This event is in the DbLoggerCategory.Model category.

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

StartedTracking

An entity is being tracked by the DbContext.

This event is in the DbLoggerCategory.ChangeTracking category.

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

StateChanged

An entity tracked by the DbContext is changing from one EntityState to another.

This event is in the DbLoggerCategory.ChangeTracking category.

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

ValueGenerated

A property of a tracked entity is getting a generated value.

This event is in the DbLoggerCategory.ChangeTracking category.

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

Applies to