Udostępnij za pośrednictwem


CoreLoggerExtensions Klasa

Definicja

Ta klasa zawiera metody statyczne używane przez wewnętrznych i dostawców baz danych EF Core do zapisywania informacji w obiekcie ILogger i DiagnosticListener dla dobrze znanych zdarzeń.

Ten typ jest zwykle używany przez dostawców baz danych (i innych rozszerzeń). Zwykle nie jest on używany w kodzie aplikacji.

public static class CoreLoggerExtensions
type CoreLoggerExtensions = class
Public Module CoreLoggerExtensions
Dziedziczenie
CoreLoggerExtensions

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Implementacja dostawców i rozszerzeń bazy danych .

Metody

AmbiguousEndRequiredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IForeignKey)

Rejestruje zdarzenie AmbiguousEndRequiredWarning .

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

Rejestruje zdarzenie CascadeDelete .

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

Rejestruje zdarzenie CascadeDeleteOrphan .

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

Rejestruje zdarzenie CascadeDeleteOrphan .

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

Rejestruje zdarzenie CascadeDelete .

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

Rejestruje zdarzenie CollectionChangeDetected .

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

Rejestruje zdarzenie CollectionChangeDetected .

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

Rejestruje zdarzenie CollectionWithoutComparer .

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

Rejestruje zdarzenie ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning .

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

Rejestruje zdarzenie ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning .

ConflictingKeylessAndKeyAttributesWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IProperty)

Rejestruje zdarzenie ConflictingKeylessAndKeyAttributesWarning .

ConflictingKeylessAndKeyAttributesWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyProperty)

Rejestruje zdarzenie ConflictingKeylessAndKeyAttributesWarning .

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IForeignKey)

Rejestruje zdarzenie ConflictingShadowForeignKeysWarning .

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyForeignKey)

Rejestruje zdarzenie ConflictingShadowForeignKeysWarning .

ContextDisposed(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, DbContext)

Rejestruje zdarzenie ContextDisposed .

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

Rejestruje zdarzenie ContextInitialized .

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

Rejestruje zdarzenie DetachedLazyLoadingWarning .

DetectChangesCompleted(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, DbContext)

Rejestruje zdarzenie DetectChangesCompleted .

DetectChangesStarting(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, DbContext)

Rejestruje zdarzenie DetectChangesStarting .

DistinctAfterOrderByWithoutRowLimitingOperatorWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Rejestruje zdarzenie DistinctAfterOrderByWithoutRowLimitingOperatorWarning .

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

Rejestruje zdarzenie DuplicateDependentEntityTypeInstanceWarning .

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

Rejestruje zdarzenie ExecutionStrategyRetrying .

FirstWithoutOrderByAndFilterWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Rejestruje zdarzenie FirstWithoutOrderByAndFilterWarning .

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

Rejestruje zdarzenie ForeignKeyAttributesOnBothNavigationsWarning .

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

Rejestruje zdarzenie ForeignKeyAttributesOnBothNavigationsWarning .

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

Rejestruje zdarzenie ForeignKeyAttributesOnBothPropertiesWarning .

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

Rejestruje zdarzenie ForeignKeyAttributesOnBothPropertiesWarning .

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

Rejestruje zdarzenie ForeignKeyChangeDetected .

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

Rejestruje zdarzenie ForeignKeyChangeDetected .

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

Rejestruje zdarzenie IncompatibleMatchingForeignKeyProperties .

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

Rejestruje zdarzenie IncompatibleMatchingForeignKeyProperties .

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

Rejestruje zdarzenie IncompatibleMatchingForeignKeyProperties .

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

Rejestruje zdarzenie InvalidIncludePathError .

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

Rejestruje zdarzenie LazyLoadOnDisposedContextWarning .

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

Rejestruje zdarzenie ManyServiceProvidersCreatedWarning .

MappedComplexPropertyIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IComplexProperty)

Rejestruje zdarzenie MappedComplexPropertyIgnoredWarning .

MappedEntityTypeIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IEntityType)

Rejestruje zdarzenie MappedEntityTypeIgnoredWarning .

MappedNavigationIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigationBase)

Rejestruje zdarzenie MappedNavigationIgnoredWarning .

MappedPropertyIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IProperty)

Rejestruje zdarzenie MappedPropertyIgnoredWarning .

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

Rejestruje zdarzenie MultipleInversePropertiesSameTargetWarning .

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

Rejestruje zdarzenie MultipleNavigationProperties .

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

Rejestruje zdarzenie MultiplePrimaryKeyCandidates .

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

Rejestruje zdarzenie MultiplePrimaryKeyCandidates .

NavigationBaseIncluded(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigationBase)

Rejestruje zdarzenie NavigationBaseIncluded .

NavigationBaseIncludeIgnored(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigationBase)

Rejestruje zdarzenie NavigationBaseIncludeIgnored .

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

Rejestruje zdarzenie NavigationLazyLoading .

NonDefiningInverseNavigationWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IEntityType, MemberInfo, IEntityType, MemberInfo, MemberInfo)
Nieaktualne..

Rejestruje zdarzenie NonDefiningInverseNavigationWarning .

NonNullableInverted(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Nieaktualne..

Rejestruje zdarzenie NonNullableInverted .

NonNullableReferenceOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation, INavigation)
Nieaktualne..

Rejestruje zdarzenie NonNullableReferenceOnBothNavigations .

NonNullableReferenceOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation, IReadOnlyNavigation)
Nieaktualne..

Rejestruje zdarzenie NonNullableReferenceOnBothNavigations .

NonNullableReferenceOnDependent(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Nieaktualne..

Rejestruje zdarzenie NonNullableReferenceOnDependent .

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

Rejestruje zdarzenie NonOwnershipInverseNavigationWarning .

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

Rejestruje zdarzenie NonOwnershipInverseNavigationWarning .

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

Rejestruje zdarzenie OldModelVersionWarning .

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

Rejestruje zdarzenie OptimisticConcurrencyException .

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

Rejestruje zdarzenie OptimisticConcurrencyException .

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

Rejestruje zdarzenie OptimisticConcurrencyException .

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

Rejestruje zdarzenie OptimisticConcurrencyException .

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

Rejestruje zdarzenie PossibleIncorrectRequiredNavigationWithQueryFilterInteractionWarning .

PossibleUnintendedCollectionNavigationNullComparisonWarning(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigation)

Rejestruje zdarzenie PossibleUnintendedCollectionNavigationNullComparisonWarning .

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

Rejestruje zdarzenie PossibleUnintendedReferenceComparisonWarning .

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

Rejestruje zdarzenie PropertyChangeDetected .

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

Rejestruje zdarzenie PropertyChangeDetected .

QueryCanceled(IDiagnosticsLogger<DbLoggerCategory.Query>, Type)

Rejestruje zdarzenie QueryCanceled .

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

Rejestruje zdarzenie QueryCompilationStarting .

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

Rejestruje zdarzenie QueryCompilationStarting .

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

Rejestruje zdarzenie QueryExecutionPlanned .

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

Rejestruje zdarzenie QueryExecutionPlanned .

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

Rejestruje zdarzenie QueryIterationFailed .

RedundantAddServicesCallWarning(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, IServiceProvider)

Rejestruje zdarzenie RedundantAddServicesCallWarning .

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

Rejestruje zdarzenie RedundantForeignKeyWarning .

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

Rejestruje zdarzenie RedundantIndexRemoved .

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

Rejestruje zdarzenie RedundantIndexRemoved .

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

Rejestruje zdarzenie ReferenceChangeDetected .

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

Rejestruje zdarzenie ReferenceChangeDetected .

RequiredAttributeInverted(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Nieaktualne..

Rejestruje zdarzenie RequiredAttributeInverted .

RequiredAttributeOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation, INavigation)
Nieaktualne..

Rejestruje zdarzenie RequiredAttributeOnBothNavigations .

RequiredAttributeOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation, IReadOnlyNavigation)
Nieaktualne..

Rejestruje zdarzenie RequiredAttributeOnBothNavigations .

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)

Rejestruje zdarzenie RequiredAttributeOnCollection .

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation)

Rejestruje zdarzenie RequiredAttributeOnCollection .

RequiredAttributeOnDependent(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Nieaktualne..

Rejestruje zdarzenie RequiredAttributeOnDependent .

RequiredAttributeOnSkipNavigation(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlySkipNavigation)

Rejestruje zdarzenie RequiredAttributeOnSkipNavigation .

RequiredAttributeOnSkipNavigation(IDiagnosticsLogger<DbLoggerCategory.Model>, ISkipNavigation)

Rejestruje zdarzenie RequiredAttributeOnSkipNavigation .

RowLimitingOperationWithoutOrderByWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Rejestruje zdarzenie RowLimitingOperationWithoutOrderByWarning .

SaveChangesCanceled(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext)

Rejestruje zdarzenie SaveChangesFailed .

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

Rejestruje zdarzenie SaveChangesFailed .

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

Rejestruje zdarzenie SaveChangesCompleted .

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

Rejestruje zdarzenie SaveChangesCompleted .

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

Rejestruje zdarzenie SaveChangesFailed .

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

Rejestruje zdarzenie SaveChangesFailed .

SaveChangesStarting(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext)

Rejestruje zdarzenie SaveChangesStarting .

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

Rejestruje zdarzenie SaveChangesStarting .

SensitiveDataLoggingEnabledWarning<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>)

Rejestruje zdarzenie SensitiveDataLoggingEnabledWarning .

ServiceProviderCreated(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, IServiceProvider)

Rejestruje zdarzenie ServiceProviderCreated .

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

ServiceProviderDebugInfo Rejestruje zdarzenie.

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

ShadowForeignKeyPropertyCreated Rejestruje zdarzenie.

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

ShadowPropertyCreated Rejestruje zdarzenie.

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

CollectionChangeDetected Rejestruje zdarzenie.

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

CollectionChangeDetected Rejestruje zdarzenie.

StartedTracking(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry)

StartedTracking Rejestruje zdarzenie.

StartedTrackingSensitive(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry)

StartedTracking Rejestruje zdarzenie.

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

StateChanged Rejestruje zdarzenie.

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

StateChanged Rejestruje zdarzenie.

StringEnumValueInJson(IDiagnosticsLogger<DbLoggerCategory.Query>, Type)

StringEnumValueInJson Rejestruje zdarzenie.

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

ValueGenerated Rejestruje zdarzenie.

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

ValueGenerated Rejestruje zdarzenie.

Dotyczy