Compartir a través de


CoreLoggerExtensions Clase

Definición

Esta clase contiene métodos estáticos usados por los proveedores internos y de base de datos de EF Core para escribir información en y ILogger para DiagnosticListener eventos conocidos.

Normalmente, este tipo lo usan los proveedores de bases de datos (y otras extensiones). Por lo general, no se usa en el código de aplicación.

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

Comentarios

Consulte Implementación de proveedores y extensiones de bases de datos para obtener más información y ejemplos.

Métodos

AmbiguousEndRequiredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IForeignKey)

Registra el AmbiguousEndRequiredWarning evento.

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

Registra el CascadeDelete evento.

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

Registra el CascadeDeleteOrphan evento.

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

Registra el CascadeDeleteOrphan evento.

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

Registra el CascadeDelete evento.

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

Registra el CollectionChangeDetected evento.

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

Registra el CollectionChangeDetected evento.

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

Registra el CollectionWithoutComparer evento.

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

Registra el ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning evento.

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

Registra el ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning evento.

ConflictingKeylessAndKeyAttributesWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IProperty)

Registra el ConflictingKeylessAndKeyAttributesWarning evento.

ConflictingKeylessAndKeyAttributesWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyProperty)

Registra el ConflictingKeylessAndKeyAttributesWarning evento.

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IForeignKey)

Registra el ConflictingShadowForeignKeysWarning evento.

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyForeignKey)

Registra el ConflictingShadowForeignKeysWarning evento.

ContextDisposed(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, DbContext)

Registra el ContextDisposed evento.

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

Registra el ContextInitialized evento.

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

Registra el DetachedLazyLoadingWarning evento.

DetectChangesCompleted(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, DbContext)

Registra el DetectChangesCompleted evento.

DetectChangesStarting(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, DbContext)

Registra el DetectChangesStarting evento.

DistinctAfterOrderByWithoutRowLimitingOperatorWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Registra el DistinctAfterOrderByWithoutRowLimitingOperatorWarning evento.

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

Registra el DuplicateDependentEntityTypeInstanceWarning evento.

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

Registra el ExecutionStrategyRetrying evento.

FirstWithoutOrderByAndFilterWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Registra el FirstWithoutOrderByAndFilterWarning evento.

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

Registra el ForeignKeyAttributesOnBothNavigationsWarning evento.

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

Registra el ForeignKeyAttributesOnBothNavigationsWarning evento.

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

Registra el ForeignKeyAttributesOnBothPropertiesWarning evento.

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

Registra el ForeignKeyAttributesOnBothPropertiesWarning evento.

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

Registra el ForeignKeyChangeDetected evento.

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

Registra el ForeignKeyChangeDetected evento.

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

Registra el IncompatibleMatchingForeignKeyProperties evento.

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

Registra el IncompatibleMatchingForeignKeyProperties evento.

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

Registra el IncompatibleMatchingForeignKeyProperties evento.

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

Registra el InvalidIncludePathError evento.

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

Registra el LazyLoadOnDisposedContextWarning evento.

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

Registra el ManyServiceProvidersCreatedWarning evento.

MappedComplexPropertyIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IComplexProperty)

Registra el MappedComplexPropertyIgnoredWarning evento.

MappedEntityTypeIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IEntityType)

Registra el MappedEntityTypeIgnoredWarning evento.

MappedNavigationIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigationBase)

Registra el MappedNavigationIgnoredWarning evento.

MappedPropertyIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IProperty)

Registra el MappedPropertyIgnoredWarning evento.

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

Registra el MultipleInversePropertiesSameTargetWarning evento.

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

Registra el MultipleNavigationProperties evento.

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

Registra el MultiplePrimaryKeyCandidates evento.

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

Registra el MultiplePrimaryKeyCandidates evento.

NavigationBaseIncluded(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigationBase)

Registra el NavigationBaseIncluded evento.

NavigationBaseIncludeIgnored(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigationBase)

Registra el NavigationBaseIncludeIgnored evento.

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

Registra el NavigationLazyLoading evento.

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

Registra el NonDefiningInverseNavigationWarning evento.

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

Registra el NonNullableInverted evento.

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

Registra el NonNullableReferenceOnBothNavigations evento.

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

Registra el NonNullableReferenceOnBothNavigations evento.

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

Registra el NonNullableReferenceOnDependent evento.

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

Registra el NonOwnershipInverseNavigationWarning evento.

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

Registra el NonOwnershipInverseNavigationWarning evento.

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

Registra el OldModelVersionWarning evento.

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

Registra el OptimisticConcurrencyException evento.

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

Registra el OptimisticConcurrencyException evento.

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

Registra el OptimisticConcurrencyException evento.

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

Registra el OptimisticConcurrencyException evento.

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

Registra el PossibleIncorrectRequiredNavigationWithQueryFilterInteractionWarning evento.

PossibleUnintendedCollectionNavigationNullComparisonWarning(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigation)

Registra el PossibleUnintendedCollectionNavigationNullComparisonWarning evento.

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

Registra el PossibleUnintendedReferenceComparisonWarning evento.

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

Registra el PropertyChangeDetected evento.

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

Registra el PropertyChangeDetected evento.

QueryCanceled(IDiagnosticsLogger<DbLoggerCategory.Query>, Type)

Registra el QueryCanceled evento.

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

Registra el QueryCompilationStarting evento.

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

Registra el QueryCompilationStarting evento.

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

Registra el QueryExecutionPlanned evento.

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

Registra el QueryExecutionPlanned evento.

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

Registra el QueryIterationFailed evento.

RedundantAddServicesCallWarning(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, IServiceProvider)

Registra el RedundantAddServicesCallWarning evento.

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

Registra el RedundantForeignKeyWarning evento.

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

Registra el RedundantIndexRemoved evento.

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

Registra el RedundantIndexRemoved evento.

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

Registra el ReferenceChangeDetected evento.

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

Registra el ReferenceChangeDetected evento.

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

Registra el RequiredAttributeInverted evento.

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

Registra el RequiredAttributeOnBothNavigations evento.

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

Registra el RequiredAttributeOnBothNavigations evento.

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)

Registra el RequiredAttributeOnCollection evento.

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation)

Registra el RequiredAttributeOnCollection evento.

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

Registra el RequiredAttributeOnDependent evento.

RequiredAttributeOnSkipNavigation(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlySkipNavigation)

Registra el RequiredAttributeOnSkipNavigation evento.

RequiredAttributeOnSkipNavigation(IDiagnosticsLogger<DbLoggerCategory.Model>, ISkipNavigation)

Registra el RequiredAttributeOnSkipNavigation evento.

RowLimitingOperationWithoutOrderByWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Registra el RowLimitingOperationWithoutOrderByWarning evento.

SaveChangesCanceled(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext)

Registra el SaveChangesFailed evento.

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

Registra el SaveChangesFailed evento.

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

Registra el SaveChangesCompleted evento.

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

Registra el SaveChangesCompleted evento.

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

Registra el SaveChangesFailed evento.

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

Registra el SaveChangesFailed evento.

SaveChangesStarting(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext)

Registra el SaveChangesStarting evento.

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

Registra el SaveChangesStarting evento.

SensitiveDataLoggingEnabledWarning<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>)

Registra el SensitiveDataLoggingEnabledWarning evento.

ServiceProviderCreated(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, IServiceProvider)

Registra el ServiceProviderCreated evento.

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

Registra el ServiceProviderDebugInfo evento.

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

Registra el ShadowForeignKeyPropertyCreated evento.

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

Registra el ShadowPropertyCreated evento.

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

Registra el CollectionChangeDetected evento.

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

Registra el CollectionChangeDetected evento.

StartedTracking(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry)

Registra el StartedTracking evento.

StartedTrackingSensitive(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry)

Registra el StartedTracking evento.

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

Registra el StateChanged evento.

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

Registra el StateChanged evento.

StringEnumValueInJson(IDiagnosticsLogger<DbLoggerCategory.Query>, Type)

Registra el StringEnumValueInJson evento.

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

Registra el ValueGenerated evento.

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

Registra el ValueGenerated evento.

Se aplica a