Compartilhar via


CoreLoggerExtensions Classe

Definição

Essa classe contém métodos estáticos usados por provedores internos e de banco de dados do EF Core para gravar informações em um ILogger e um DiagnosticListener para eventos conhecidos.

Esse tipo normalmente é usado por provedores de banco de dados (e outras extensões). Geralmente, ele não é usado no código do aplicativo.

public static class CoreLoggerExtensions
type CoreLoggerExtensions = class
Public Module CoreLoggerExtensions
Herança
CoreLoggerExtensions

Comentários

Consulte Implementação de provedores de banco de dados e extensões para obter mais informações e exemplos.

Métodos

AmbiguousEndRequiredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IForeignKey)

Logs do AmbiguousEndRequiredWarning evento.

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

Logs do CascadeDelete evento.

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

Logs do CascadeDeleteOrphan evento.

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

Logs do CascadeDeleteOrphan evento.

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

Logs do CascadeDelete evento.

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

Logs do CollectionChangeDetected evento.

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

Logs do CollectionChangeDetected evento.

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

Logs do CollectionWithoutComparer evento.

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

Logs do ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning evento.

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

Logs do ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning evento.

ConflictingKeylessAndKeyAttributesWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IProperty)

Logs do ConflictingKeylessAndKeyAttributesWarning evento.

ConflictingKeylessAndKeyAttributesWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyProperty)

Logs do ConflictingKeylessAndKeyAttributesWarning evento.

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IForeignKey)

Logs do ConflictingShadowForeignKeysWarning evento.

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyForeignKey)

Logs do ConflictingShadowForeignKeysWarning evento.

ContextDisposed(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, DbContext)

Logs do ContextDisposed evento.

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

Logs do ContextInitialized evento.

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

Logs do DetachedLazyLoadingWarning evento.

DetectChangesCompleted(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, DbContext)

Logs do DetectChangesCompleted evento.

DetectChangesStarting(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, DbContext)

Logs do DetectChangesStarting evento.

DistinctAfterOrderByWithoutRowLimitingOperatorWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Logs do DistinctAfterOrderByWithoutRowLimitingOperatorWarning evento.

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

Logs do DuplicateDependentEntityTypeInstanceWarning evento.

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

Logs do ExecutionStrategyRetrying evento.

FirstWithoutOrderByAndFilterWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Logs do FirstWithoutOrderByAndFilterWarning evento.

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

Logs do ForeignKeyAttributesOnBothNavigationsWarning evento.

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

Logs do ForeignKeyAttributesOnBothNavigationsWarning evento.

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

Logs do ForeignKeyAttributesOnBothPropertiesWarning evento.

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

Logs do ForeignKeyAttributesOnBothPropertiesWarning evento.

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

Logs do ForeignKeyChangeDetected evento.

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

Logs do ForeignKeyChangeDetected evento.

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

Logs do IncompatibleMatchingForeignKeyProperties evento.

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

Logs do IncompatibleMatchingForeignKeyProperties evento.

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

Logs do IncompatibleMatchingForeignKeyProperties evento.

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

Logs do InvalidIncludePathError evento.

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

Logs do LazyLoadOnDisposedContextWarning evento.

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

Logs do ManyServiceProvidersCreatedWarning evento.

MappedComplexPropertyIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IComplexProperty)

Logs do MappedComplexPropertyIgnoredWarning evento.

MappedEntityTypeIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IEntityType)

Logs do MappedEntityTypeIgnoredWarning evento.

MappedNavigationIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigationBase)

Logs do MappedNavigationIgnoredWarning evento.

MappedPropertyIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IProperty)

Logs do MappedPropertyIgnoredWarning evento.

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

Logs do MultipleInversePropertiesSameTargetWarning evento.

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

Logs do MultipleNavigationProperties evento.

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

Logs do MultiplePrimaryKeyCandidates evento.

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

Logs do MultiplePrimaryKeyCandidates evento.

NavigationBaseIncluded(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigationBase)

Logs do NavigationBaseIncluded evento.

NavigationBaseIncludeIgnored(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigationBase)

Logs do NavigationBaseIncludeIgnored evento.

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

Logs do NavigationLazyLoading evento.

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

Logs do NonDefiningInverseNavigationWarning evento.

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

Logs do NonNullableInverted evento.

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

Logs do NonNullableReferenceOnBothNavigations evento.

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

Logs do NonNullableReferenceOnBothNavigations evento.

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

Logs do NonNullableReferenceOnDependent evento.

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

Logs do NonOwnershipInverseNavigationWarning evento.

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

Logs do NonOwnershipInverseNavigationWarning evento.

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

Logs do OldModelVersionWarning evento.

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

Logs do OptimisticConcurrencyException evento.

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

Logs do OptimisticConcurrencyException evento.

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

Logs do OptimisticConcurrencyException evento.

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

Logs do OptimisticConcurrencyException evento.

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

Logs do PossibleIncorrectRequiredNavigationWithQueryFilterInteractionWarning evento.

PossibleUnintendedCollectionNavigationNullComparisonWarning(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigation)

Logs do PossibleUnintendedCollectionNavigationNullComparisonWarning evento.

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

Logs do PossibleUnintendedReferenceComparisonWarning evento.

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

Logs do PropertyChangeDetected evento.

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

Logs do PropertyChangeDetected evento.

QueryCanceled(IDiagnosticsLogger<DbLoggerCategory.Query>, Type)

Logs do QueryCanceled evento.

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

Logs do QueryCompilationStarting evento.

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

Logs do QueryCompilationStarting evento.

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

Logs do QueryExecutionPlanned evento.

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

Logs do QueryExecutionPlanned evento.

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

Logs do QueryIterationFailed evento.

RedundantAddServicesCallWarning(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, IServiceProvider)

Logs do RedundantAddServicesCallWarning evento.

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

Logs do RedundantForeignKeyWarning evento.

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

Logs do RedundantIndexRemoved evento.

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

Logs do RedundantIndexRemoved evento.

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

Logs do ReferenceChangeDetected evento.

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

Logs do ReferenceChangeDetected evento.

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

Logs do RequiredAttributeInverted evento.

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

Logs do RequiredAttributeOnBothNavigations evento.

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

Logs do RequiredAttributeOnBothNavigations evento.

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)

Logs do RequiredAttributeOnCollection evento.

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation)

Logs do RequiredAttributeOnCollection evento.

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

Logs do RequiredAttributeOnDependent evento.

RequiredAttributeOnSkipNavigation(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlySkipNavigation)

Logs do RequiredAttributeOnSkipNavigation evento.

RequiredAttributeOnSkipNavigation(IDiagnosticsLogger<DbLoggerCategory.Model>, ISkipNavigation)

Logs do RequiredAttributeOnSkipNavigation evento.

RowLimitingOperationWithoutOrderByWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Logs do RowLimitingOperationWithoutOrderByWarning evento.

SaveChangesCanceled(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext)

Logs do SaveChangesFailed evento.

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

Logs do SaveChangesFailed evento.

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

Logs do SaveChangesCompleted evento.

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

Logs do SaveChangesCompleted evento.

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

Logs do SaveChangesFailed evento.

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

Logs do SaveChangesFailed evento.

SaveChangesStarting(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext)

Logs do SaveChangesStarting evento.

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

Logs do SaveChangesStarting evento.

SensitiveDataLoggingEnabledWarning<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>)

Logs do SensitiveDataLoggingEnabledWarning evento.

ServiceProviderCreated(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, IServiceProvider)

Logs do ServiceProviderCreated evento.

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

Logs do ServiceProviderDebugInfo evento.

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

Logs do ShadowForeignKeyPropertyCreated evento.

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

Logs do ShadowPropertyCreated evento.

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

Logs do CollectionChangeDetected evento.

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

Logs do CollectionChangeDetected evento.

StartedTracking(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry)

Logs do StartedTracking evento.

StartedTrackingSensitive(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry)

Logs do StartedTracking evento.

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

Logs do StateChanged evento.

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

Logs do StateChanged evento.

StringEnumValueInJson(IDiagnosticsLogger<DbLoggerCategory.Query>, Type)

Logs do StringEnumValueInJson evento.

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

Logs do ValueGenerated evento.

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

Logs do ValueGenerated evento.

Aplica-se a