Sdílet prostřednictvím


CoreLoggerExtensions Třída

Definice

Tato třída obsahuje statické metody používané interními zprostředkovateli a poskytovateli databází EF Core k zápisu DiagnosticListener informací do a ILogger pro dobře známé události.

Tento typ obvykle používají poskytovatelé databází (a další rozšíření). Obvykle se nepoužívá v kódu aplikace.

public static class CoreLoggerExtensions
type CoreLoggerExtensions = class
Public Module CoreLoggerExtensions
Dědičnost
CoreLoggerExtensions

Poznámky

Další informace a příklady najdete v tématu Implementace zprostředkovatelů a rozšíření databáze .

Metody

AmbiguousEndRequiredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IForeignKey)

Protokoluje událost AmbiguousEndRequiredWarning .

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

Protokoluje událost CascadeDelete .

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

Protokoluje událost CascadeDeleteOrphan .

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

Protokoluje událost CascadeDeleteOrphan .

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

Protokoluje událost CascadeDelete .

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

Protokoluje událost CollectionChangeDetected .

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

Protokoluje událost CollectionChangeDetected .

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

Protokoluje událost CollectionWithoutComparer .

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

Protokoluje událost ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning .

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

Protokoluje událost ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning .

ConflictingKeylessAndKeyAttributesWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IProperty)

Protokoluje událost ConflictingKeylessAndKeyAttributesWarning .

ConflictingKeylessAndKeyAttributesWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyProperty)

Protokoluje událost ConflictingKeylessAndKeyAttributesWarning .

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IForeignKey)

Protokoluje událost ConflictingShadowForeignKeysWarning .

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyForeignKey)

Protokoluje událost ConflictingShadowForeignKeysWarning .

ContextDisposed(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, DbContext)

Protokoluje událost ContextDisposed .

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

Protokoluje událost ContextInitialized .

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

Protokoluje událost DetachedLazyLoadingWarning .

DetectChangesCompleted(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, DbContext)

Protokoluje událost DetectChangesCompleted .

DetectChangesStarting(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, DbContext)

Protokoluje událost DetectChangesStarting .

DistinctAfterOrderByWithoutRowLimitingOperatorWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Protokoluje událost DistinctAfterOrderByWithoutRowLimitingOperatorWarning .

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

Protokoluje událost DuplicateDependentEntityTypeInstanceWarning .

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

Protokoluje událost ExecutionStrategyRetrying .

FirstWithoutOrderByAndFilterWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Protokoluje událost FirstWithoutOrderByAndFilterWarning .

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

Protokoluje událost ForeignKeyAttributesOnBothNavigationsWarning .

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

Protokoluje událost ForeignKeyAttributesOnBothNavigationsWarning .

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

Protokoluje událost ForeignKeyAttributesOnBothPropertiesWarning .

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

Protokoluje událost ForeignKeyAttributesOnBothPropertiesWarning .

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

Protokoluje událost ForeignKeyChangeDetected .

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

Protokoluje událost ForeignKeyChangeDetected .

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

Protokoluje událost IncompatibleMatchingForeignKeyProperties .

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

Protokoluje událost IncompatibleMatchingForeignKeyProperties .

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

Protokoluje událost IncompatibleMatchingForeignKeyProperties .

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

Protokoluje událost InvalidIncludePathError .

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

Protokoluje událost LazyLoadOnDisposedContextWarning .

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

Protokoluje událost ManyServiceProvidersCreatedWarning .

MappedComplexPropertyIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IComplexProperty)

Protokoluje událost MappedComplexPropertyIgnoredWarning .

MappedEntityTypeIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IEntityType)

Protokoluje událost MappedEntityTypeIgnoredWarning .

MappedNavigationIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigationBase)

Protokoluje událost MappedNavigationIgnoredWarning .

MappedPropertyIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IProperty)

Protokoluje událost MappedPropertyIgnoredWarning .

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

Protokoluje událost MultipleInversePropertiesSameTargetWarning .

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

Protokoluje událost MultipleNavigationProperties .

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

Protokoluje událost MultiplePrimaryKeyCandidates .

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

Protokoluje událost MultiplePrimaryKeyCandidates .

NavigationBaseIncluded(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigationBase)

Protokoluje událost NavigationBaseIncluded .

NavigationBaseIncludeIgnored(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigationBase)

Protokoluje událost NavigationBaseIncludeIgnored .

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

Protokoluje událost NavigationLazyLoading .

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

Protokoluje událost NonDefiningInverseNavigationWarning .

NonNullableInverted(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Zastaralé..

Protokoluje událost NonNullableInverted .

NonNullableReferenceOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation, INavigation)
Zastaralé..

Protokoluje událost NonNullableReferenceOnBothNavigations .

NonNullableReferenceOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation, IReadOnlyNavigation)
Zastaralé..

Protokoluje událost NonNullableReferenceOnBothNavigations .

NonNullableReferenceOnDependent(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Zastaralé..

Protokoluje událost NonNullableReferenceOnDependent .

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

Protokoluje událost NonOwnershipInverseNavigationWarning .

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

Protokoluje událost NonOwnershipInverseNavigationWarning .

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

Protokoluje událost OldModelVersionWarning .

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

Protokoluje událost OptimisticConcurrencyException .

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

Protokoluje událost OptimisticConcurrencyException .

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

Protokoluje událost OptimisticConcurrencyException .

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

Protokoluje událost OptimisticConcurrencyException .

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

Protokoluje událost PossibleIncorrectRequiredNavigationWithQueryFilterInteractionWarning .

PossibleUnintendedCollectionNavigationNullComparisonWarning(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigation)

Protokoluje událost PossibleUnintendedCollectionNavigationNullComparisonWarning .

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

Protokoluje událost PossibleUnintendedReferenceComparisonWarning .

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

Protokoluje událost PropertyChangeDetected .

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

Protokoluje událost PropertyChangeDetected .

QueryCanceled(IDiagnosticsLogger<DbLoggerCategory.Query>, Type)

Protokoluje událost QueryCanceled .

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

Protokoluje událost QueryCompilationStarting .

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

Protokoluje událost QueryCompilationStarting .

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

Protokoluje událost QueryExecutionPlanned .

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

Protokoluje událost QueryExecutionPlanned .

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

Protokoluje událost QueryIterationFailed .

RedundantAddServicesCallWarning(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, IServiceProvider)

Protokoluje událost RedundantAddServicesCallWarning .

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

Protokoluje událost RedundantForeignKeyWarning .

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

Protokoluje událost RedundantIndexRemoved .

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

Protokoluje událost RedundantIndexRemoved .

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

Protokoluje událost ReferenceChangeDetected .

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

Protokoluje událost ReferenceChangeDetected .

RequiredAttributeInverted(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Zastaralé..

Protokoluje událost RequiredAttributeInverted .

RequiredAttributeOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation, INavigation)
Zastaralé..

Protokoluje událost RequiredAttributeOnBothNavigations .

RequiredAttributeOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation, IReadOnlyNavigation)
Zastaralé..

Protokoluje událost RequiredAttributeOnBothNavigations .

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)

Protokoluje událost RequiredAttributeOnCollection .

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation)

Protokoluje událost RequiredAttributeOnCollection .

RequiredAttributeOnDependent(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Zastaralé..

Protokoluje událost RequiredAttributeOnDependent .

RequiredAttributeOnSkipNavigation(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlySkipNavigation)

Protokoluje událost RequiredAttributeOnSkipNavigation .

RequiredAttributeOnSkipNavigation(IDiagnosticsLogger<DbLoggerCategory.Model>, ISkipNavigation)

Protokoluje událost RequiredAttributeOnSkipNavigation .

RowLimitingOperationWithoutOrderByWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Protokoluje událost RowLimitingOperationWithoutOrderByWarning .

SaveChangesCanceled(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext)

Protokoluje událost SaveChangesFailed .

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

Protokoluje událost SaveChangesFailed .

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

Protokoluje událost SaveChangesCompleted .

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

Protokoluje událost SaveChangesCompleted .

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

Protokoluje událost SaveChangesFailed .

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

Protokoluje událost SaveChangesFailed .

SaveChangesStarting(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext)

Protokoluje událost SaveChangesStarting .

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

Protokoluje událost SaveChangesStarting .

SensitiveDataLoggingEnabledWarning<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>)

Protokoluje událost SensitiveDataLoggingEnabledWarning .

ServiceProviderCreated(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, IServiceProvider)

Protokoluje událost ServiceProviderCreated .

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

Protokoluje událost ServiceProviderDebugInfo .

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

Protokoluje událost ShadowForeignKeyPropertyCreated .

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

Protokoluje událost ShadowPropertyCreated .

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

Protokoluje událost CollectionChangeDetected .

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

Protokoluje událost CollectionChangeDetected .

StartedTracking(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry)

Protokoluje událost StartedTracking .

StartedTrackingSensitive(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry)

Protokoluje událost StartedTracking .

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

Protokoluje událost StateChanged .

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

Protokoluje událost StateChanged .

StringEnumValueInJson(IDiagnosticsLogger<DbLoggerCategory.Query>, Type)

Protokoluje událost StringEnumValueInJson .

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

Protokoluje událost ValueGenerated .

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

Protokoluje událost ValueGenerated .

Platí pro