Partager via


CoreLoggerExtensions Classe

Définition

Cette classe contient des méthodes statiques utilisées par les internes EF Core et les fournisseurs de base de données pour écrire des informations dans un ILogger et un pour des DiagnosticListener événements connus.

Ce type est généralement utilisé par les fournisseurs de base de données (et d’autres extensions). Il n’est généralement pas utilisé dans le code de l’application.

public static class CoreLoggerExtensions
type CoreLoggerExtensions = class
Public Module CoreLoggerExtensions
Héritage
CoreLoggerExtensions

Remarques

Pour plus d’informations et d’exemples, consultez Implémentation des fournisseurs et extensions de base de données .

Méthodes

AmbiguousEndRequiredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IForeignKey)

Journaux de l’événement AmbiguousEndRequiredWarning .

CascadeDelete(IDiagnosticsLogger<DbLoggerCategory.Update>, InternalEntityEntry, InternalEntityEntry, EntityState)

Journaux de l’événement CascadeDelete .

CascadeDeleteOrphan(IDiagnosticsLogger<DbLoggerCategory.Update>, InternalEntityEntry, IEntityType, EntityState)

Journaux de l’événement CascadeDeleteOrphan .

CascadeDeleteOrphanSensitive(IDiagnosticsLogger<DbLoggerCategory.Update>, InternalEntityEntry, IEntityType, EntityState)

Journaux de l’événement CascadeDeleteOrphan .

CascadeDeleteSensitive(IDiagnosticsLogger<DbLoggerCategory.Update>, InternalEntityEntry, InternalEntityEntry, EntityState)

Journaux de l’événement CascadeDelete .

CollectionChangeDetected(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry, INavigation, ISet<Object>, ISet<Object>)

Journaux de l’événement CollectionChangeDetected .

CollectionChangeDetectedSensitive(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry, INavigation, ISet<Object>, ISet<Object>)

Journaux de l’événement CollectionChangeDetected .

CollectionWithoutComparer(IDiagnosticsLogger<DbLoggerCategory.Model.Validation>, IProperty)

Journaux de l’événement CollectionWithoutComparer .

ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation, MemberInfo)

Journaux de l’événement ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning .

ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation, MemberInfo)

Journaux de l’événement ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning .

ConflictingKeylessAndKeyAttributesWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IProperty)

Journaux de l’événement ConflictingKeylessAndKeyAttributesWarning .

ConflictingKeylessAndKeyAttributesWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyProperty)

Journaux de l’événement ConflictingKeylessAndKeyAttributesWarning .

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IForeignKey)

Journaux de l’événement ConflictingShadowForeignKeysWarning .

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyForeignKey)

Journaux de l’événement ConflictingShadowForeignKeysWarning .

ContextDisposed(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, DbContext)

Journaux de l’événement ContextDisposed .

ContextInitialized(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, DbContext, DbContextOptions)

Journaux de l’événement ContextInitialized .

DetachedLazyLoadingWarning(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, DbContext, Object, String)

Journaux de l’événement DetachedLazyLoadingWarning .

DetectChangesCompleted(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, DbContext)

Journaux de l’événement DetectChangesCompleted .

DetectChangesStarting(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, DbContext)

Journaux de l’événement DetectChangesStarting .

DistinctAfterOrderByWithoutRowLimitingOperatorWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Journaux de l’événement DistinctAfterOrderByWithoutRowLimitingOperatorWarning .

DuplicateDependentEntityTypeInstanceWarning(IDiagnosticsLogger<DbLoggerCategory.Update>, IEntityType, IEntityType)

Journaux de l’événement DuplicateDependentEntityTypeInstanceWarning .

ExecutionStrategyRetrying(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, IReadOnlyList<Exception>, TimeSpan, Boolean)

Journaux de l’événement ExecutionStrategyRetrying .

FirstWithoutOrderByAndFilterWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Journaux de l’événement FirstWithoutOrderByAndFilterWarning .

ForeignKeyAttributesOnBothNavigationsWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation, INavigation)

Journaux de l’événement ForeignKeyAttributesOnBothNavigationsWarning .

ForeignKeyAttributesOnBothNavigationsWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation, IReadOnlyNavigation)

Journaux de l’événement ForeignKeyAttributesOnBothNavigationsWarning .

ForeignKeyAttributesOnBothPropertiesWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation, INavigation, MemberInfo, MemberInfo)

Journaux de l’événement ForeignKeyAttributesOnBothPropertiesWarning .

ForeignKeyAttributesOnBothPropertiesWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation, IReadOnlyNavigation, MemberInfo, MemberInfo)

Journaux de l’événement ForeignKeyAttributesOnBothPropertiesWarning .

ForeignKeyChangeDetected(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry, IProperty, Object, Object)

Journaux de l’événement ForeignKeyChangeDetected .

ForeignKeyChangeDetectedSensitive(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry, IProperty, Object, Object)

Journaux de l’événement ForeignKeyChangeDetected .

IncompatibleMatchingForeignKeyProperties(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyList<IPropertyBase>, IReadOnlyList<IPropertyBase>)

Journaux de l’événement IncompatibleMatchingForeignKeyProperties .

IncompatibleMatchingForeignKeyProperties(IDiagnosticsLogger<DbLoggerCategory.Model>, String, String, IReadOnlyList<IPropertyBase>, IReadOnlyList<IPropertyBase>)

Journaux de l’événement IncompatibleMatchingForeignKeyProperties .

IncompatibleMatchingForeignKeyProperties(IDiagnosticsLogger<DbLoggerCategory.Model>, String, String, IReadOnlyList<IReadOnlyPropertyBase>, IReadOnlyList<IReadOnlyPropertyBase>)

Journaux de l’événement IncompatibleMatchingForeignKeyProperties .

InvalidIncludePathError(IDiagnosticsLogger<DbLoggerCategory.Query>, String, String)

Journaux de l’événement InvalidIncludePathError .

LazyLoadOnDisposedContextWarning(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, DbContext, Object, String)

Journaux de l’événement LazyLoadOnDisposedContextWarning .

ManyServiceProvidersCreatedWarning(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, ICollection<IServiceProvider>)

Journaux de l’événement ManyServiceProvidersCreatedWarning .

MappedComplexPropertyIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IComplexProperty)

Journaux de l’événement MappedComplexPropertyIgnoredWarning .

MappedEntityTypeIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IEntityType)

Journaux de l’événement MappedEntityTypeIgnoredWarning .

MappedNavigationIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigationBase)

Journaux de l’événement MappedNavigationIgnoredWarning .

MappedPropertyIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IProperty)

Journaux de l’événement MappedPropertyIgnoredWarning .

MultipleInversePropertiesSameTargetWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IEnumerable<Tuple<MemberInfo,Type>>, MemberInfo, Type)

Journaux de l’événement MultipleInversePropertiesSameTargetWarning .

MultipleNavigationProperties(IDiagnosticsLogger<DbLoggerCategory.Model>, IEnumerable<Tuple<MemberInfo,Type>>, IEnumerable<Tuple<MemberInfo,Type>>)

Journaux de l’événement MultipleNavigationProperties .

MultiplePrimaryKeyCandidates(IDiagnosticsLogger<DbLoggerCategory.Model>, IProperty, IProperty)

Journaux de l’événement MultiplePrimaryKeyCandidates .

MultiplePrimaryKeyCandidates(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyProperty, IReadOnlyProperty)

Journaux de l’événement MultiplePrimaryKeyCandidates .

NavigationBaseIncluded(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigationBase)

Journaux de l’événement NavigationBaseIncluded .

NavigationBaseIncludeIgnored(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigationBase)

Journaux de l’événement NavigationBaseIncludeIgnored .

NavigationLazyLoading(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, DbContext, Object, String)

Journaux de l’événement NavigationLazyLoading .

NonDefiningInverseNavigationWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IEntityType, MemberInfo, IEntityType, MemberInfo, MemberInfo)
Obsolète..

Journaux de l’événement NonDefiningInverseNavigationWarning .

NonNullableInverted(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Obsolète..

Journaux de l’événement NonNullableInverted .

NonNullableReferenceOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation, INavigation)
Obsolète..

Journaux de l’événement NonNullableReferenceOnBothNavigations .

NonNullableReferenceOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation, IReadOnlyNavigation)
Obsolète..

Journaux de l’événement NonNullableReferenceOnBothNavigations .

NonNullableReferenceOnDependent(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Obsolète..

Journaux de l’événement NonNullableReferenceOnDependent .

NonOwnershipInverseNavigationWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IEntityType, MemberInfo, IEntityType, MemberInfo, MemberInfo)

Journaux de l’événement NonOwnershipInverseNavigationWarning .

NonOwnershipInverseNavigationWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyEntityType, MemberInfo, IReadOnlyEntityType, MemberInfo, MemberInfo)

Journaux de l’événement NonOwnershipInverseNavigationWarning .

OldModelVersionWarning(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, DbContext, DbContextOptions)

Journaux de l’événement OldModelVersionWarning .

OptimisticConcurrencyException(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext, Exception)

Journaux de l’événement OptimisticConcurrencyException .

OptimisticConcurrencyException(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext, IReadOnlyList<IUpdateEntry>, DbUpdateConcurrencyException, Func<DbContext,DbUpdateConcurrencyException,IReadOnlyList<IUpdateEntry>, EventDefinition<Exception>,ConcurrencyExceptionEventData>)

Journaux de l’événement OptimisticConcurrencyException .

OptimisticConcurrencyExceptionAsync(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext, Exception, CancellationToken)

Journaux de l’événement OptimisticConcurrencyException .

OptimisticConcurrencyExceptionAsync(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext, IReadOnlyList<IUpdateEntry>, DbUpdateConcurrencyException, Func<DbContext,DbUpdateConcurrencyException,IReadOnlyList<IUpdateEntry>, EventDefinition<Exception>,ConcurrencyExceptionEventData>, CancellationToken)

Journaux de l’événement OptimisticConcurrencyException .

PossibleIncorrectRequiredNavigationWithQueryFilterInteractionWarning(IDiagnosticsLogger<DbLoggerCategory.Model.Validation>, IForeignKey)

Journaux de l’événement PossibleIncorrectRequiredNavigationWithQueryFilterInteractionWarning .

PossibleUnintendedCollectionNavigationNullComparisonWarning(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigation)

Journaux de l’événement PossibleUnintendedCollectionNavigationNullComparisonWarning .

PossibleUnintendedReferenceComparisonWarning(IDiagnosticsLogger<DbLoggerCategory.Query>, Expression, Expression)

Journaux de l’événement PossibleUnintendedReferenceComparisonWarning .

PropertyChangeDetected(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry, IProperty, Object, Object)

Journaux de l’événement PropertyChangeDetected .

PropertyChangeDetectedSensitive(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry, IProperty, Object, Object)

Journaux de l’événement PropertyChangeDetected .

QueryCanceled(IDiagnosticsLogger<DbLoggerCategory.Query>, Type)

Journaux de l’événement QueryCanceled .

QueryCompilationStarting(IDiagnosticsLogger<DbLoggerCategory.Query>, DbContext, ExpressionPrinter, Expression)

Journaux de l’événement QueryCompilationStarting .

QueryCompilationStarting(IDiagnosticsLogger<DbLoggerCategory.Query>, ExpressionPrinter, Expression)

Journaux de l’événement QueryCompilationStarting .

QueryExecutionPlanned(IDiagnosticsLogger<DbLoggerCategory.Query>, DbContext, ExpressionPrinter, Expression)

Journaux de l’événement QueryExecutionPlanned .

QueryExecutionPlanned(IDiagnosticsLogger<DbLoggerCategory.Query>, ExpressionPrinter, Expression)

Journaux de l’événement QueryExecutionPlanned .

QueryIterationFailed(IDiagnosticsLogger<DbLoggerCategory.Query>, Type, Exception)

Journaux de l’événement QueryIterationFailed .

RedundantAddServicesCallWarning(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, IServiceProvider)

Journaux de l’événement RedundantAddServicesCallWarning .

RedundantForeignKeyWarning(IDiagnosticsLogger<DbLoggerCategory.Model.Validation>, IForeignKey)

Journaux de l’événement RedundantForeignKeyWarning .

RedundantIndexRemoved(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyList<IPropertyBase>, IReadOnlyList<IPropertyBase>)

Journaux de l’événement RedundantIndexRemoved .

RedundantIndexRemoved(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyList<IReadOnlyPropertyBase>, IReadOnlyList<IReadOnlyPropertyBase>)

Journaux de l’événement RedundantIndexRemoved .

ReferenceChangeDetected(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry, INavigation, Object, Object)

Journaux de l’événement ReferenceChangeDetected .

ReferenceChangeDetectedSensitive(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry, INavigation, Object, Object)

Journaux de l’événement ReferenceChangeDetected .

RequiredAttributeInverted(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Obsolète..

Journaux de l’événement RequiredAttributeInverted .

RequiredAttributeOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation, INavigation)
Obsolète..

Journaux de l’événement RequiredAttributeOnBothNavigations .

RequiredAttributeOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation, IReadOnlyNavigation)
Obsolète..

Journaux de l’événement RequiredAttributeOnBothNavigations .

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)

Journaux de l’événement RequiredAttributeOnCollection .

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation)

Journaux de l’événement RequiredAttributeOnCollection .

RequiredAttributeOnDependent(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Obsolète..

Journaux de l’événement RequiredAttributeOnDependent .

RequiredAttributeOnSkipNavigation(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlySkipNavigation)

Journaux de l’événement RequiredAttributeOnSkipNavigation .

RequiredAttributeOnSkipNavigation(IDiagnosticsLogger<DbLoggerCategory.Model>, ISkipNavigation)

Journaux de l’événement RequiredAttributeOnSkipNavigation .

RowLimitingOperationWithoutOrderByWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Journaux de l’événement RowLimitingOperationWithoutOrderByWarning .

SaveChangesCanceled(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext)

Journaux de l’événement SaveChangesFailed .

SaveChangesCanceledAsync(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext, CancellationToken)

Journaux de l’événement SaveChangesFailed .

SaveChangesCompleted(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext, Int32)

Journaux de l’événement SaveChangesCompleted .

SaveChangesCompletedAsync(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext, Int32, CancellationToken)

Journaux de l’événement SaveChangesCompleted .

SaveChangesFailed(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext, Exception)

Journaux de l’événement SaveChangesFailed .

SaveChangesFailedAsync(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext, Exception, CancellationToken)

Journaux de l’événement SaveChangesFailed .

SaveChangesStarting(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext)

Journaux de l’événement SaveChangesStarting .

SaveChangesStartingAsync(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext, CancellationToken)

Journaux de l’événement SaveChangesStarting .

SensitiveDataLoggingEnabledWarning<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>)

Journaux de l’événement SensitiveDataLoggingEnabledWarning .

ServiceProviderCreated(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, IServiceProvider)

Journaux de l’événement ServiceProviderCreated .

ServiceProviderDebugInfo(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, IDictionary<String,String>, IList<IDictionary<String,String>>)

Journaux de l’événement ServiceProviderDebugInfo .

ShadowForeignKeyPropertyCreated(IDiagnosticsLogger<DbLoggerCategory.Model.Validation>, IProperty, String)

Journaux de l’événement ShadowForeignKeyPropertyCreated .

ShadowPropertyCreated(IDiagnosticsLogger<DbLoggerCategory.Model.Validation>, IProperty)

Journaux de l’événement ShadowPropertyCreated .

SkipCollectionChangeDetected(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry, ISkipNavigation, ISet<Object>, ISet<Object>)

Journaux de l’événement CollectionChangeDetected .

SkipCollectionChangeDetectedSensitive(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry, ISkipNavigation, ISet<Object>, ISet<Object>)

Journaux de l’événement CollectionChangeDetected .

StartedTracking(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry)

Journaux de l’événement StartedTracking .

StartedTrackingSensitive(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry)

Journaux de l’événement StartedTracking .

StateChanged(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry, EntityState, EntityState)

Journaux de l’événement StateChanged .

StateChangedSensitive(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry, EntityState, EntityState)

Journaux de l’événement StateChanged .

StringEnumValueInJson(IDiagnosticsLogger<DbLoggerCategory.Query>, Type)

Journaux de l’événement StringEnumValueInJson .

ValueGenerated(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry, IProperty, Object, Boolean)

Journaux de l’événement ValueGenerated .

ValueGeneratedSensitive(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry, IProperty, Object, Boolean)

Journaux de l’événement ValueGenerated .

S’applique à