Язык

CoreLoggerExtensions Класс

Определение

Этот класс содержит статические методы, используемые внутренними элементами EF Core и поставщиками баз данных для записи сведений в известные ILogger события и а DiagnosticListener также для известных событий.

Этот тип обычно используется поставщиками баз данных (и другими расширениями). Обычно он не используется в коде приложения.

[System.Runtime.CompilerServices.Nullable(0)]
public static class CoreLoggerExtensions
public static class CoreLoggerExtensions
[<System.Runtime.CompilerServices.Nullable(0)>]
type CoreLoggerExtensions = class
type CoreLoggerExtensions = class
Public Module CoreLoggerExtensions
Наследование
CoreLoggerExtensions
Атрибуты

Комментарии

Дополнительные сведения и примеры см. в разделе "Реализация поставщиков баз данных и расширений ".

Методы

Имя. Описание
AccidentalComplexPropertyCollection(IDiagnosticsLogger<DbLoggerCategory.Model.Validation>, IComplexProperty)

Журналы для AccidentalComplexPropertyCollection события.

AccidentalEntityType(IDiagnosticsLogger<DbLoggerCategory.Model.Validation>, IEntityType)

Журналы для AccidentalEntityType события.

AmbiguousEndRequiredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IForeignKey)

Журналы для AmbiguousEndRequiredWarning события.

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

Журналы для CascadeDelete события.

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

Журналы для CascadeDeleteOrphan события.

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

Журналы для CascadeDeleteOrphan события.

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

Журналы для CascadeDelete события.

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

Журналы для CollectionChangeDetected события.

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

Журналы для CollectionChangeDetected события.

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

Журналы для CollectionWithoutComparer события.

CompiledModelProviderMismatchWarning(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, String, String)

Журналы для CompiledModelProviderMismatchWarning события.

ComplexElementPropertyChangeDetected(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalComplexEntry, IProperty, Object, Object)

Журналы для ComplexElementPropertyChangeDetected события.

ComplexElementPropertyChangeDetectedSensitive(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalComplexEntry, IProperty, Object, Object)

Журналы для ComplexElementPropertyChangeDetected события.

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

Журналы для ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning события.

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

Журналы для ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning события.

ConflictingKeylessAndKeyAttributesWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IProperty)

Журналы для ConflictingKeylessAndKeyAttributesWarning события.

ConflictingKeylessAndKeyAttributesWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyProperty)

Журналы для ConflictingKeylessAndKeyAttributesWarning события.

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IForeignKey)

Журналы для ConflictingShadowForeignKeysWarning события.

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyForeignKey)

Журналы для ConflictingShadowForeignKeysWarning события.

ContextDisposed(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, DbContext)

Журналы для ContextDisposed события.

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

Журналы для ContextInitialized события.

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

Журналы для DetachedLazyLoadingWarning события.

DetectChangesCompleted(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, DbContext)

Журналы для DetectChangesCompleted события.

DetectChangesStarting(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, DbContext)

Журналы для DetectChangesStarting события.

DistinctAfterOrderByWithoutRowLimitingOperatorWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Журналы для DistinctAfterOrderByWithoutRowLimitingOperatorWarning события.

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

Журналы для DuplicateDependentEntityTypeInstanceWarning события.

EnsureCreatedWithTrackedEntitiesWarning(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>)

Журналы для EnsureCreatedWithTrackedEntitiesWarning события.

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

Журналы для ExecutionStrategyRetrying события.

FirstWithoutOrderByAndFilterWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Журналы для FirstWithoutOrderByAndFilterWarning события.

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

Журналы для ForeignKeyAttributesOnBothNavigationsWarning события.

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

Журналы для ForeignKeyAttributesOnBothNavigationsWarning события.

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

Журналы для ForeignKeyAttributesOnBothPropertiesWarning события.

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

Журналы для ForeignKeyAttributesOnBothPropertiesWarning события.

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

Журналы для ForeignKeyChangeDetected события.

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

Журналы для ForeignKeyChangeDetected события.

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

Журналы для IncompatibleMatchingForeignKeyProperties события.

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

Журналы для IncompatibleMatchingForeignKeyProperties события.

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

Журналы для IncompatibleMatchingForeignKeyProperties события.

InconsistentOwnedDataSensitive(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigationBase, InternalEntityEntry)

Журналы для InconsistentOwnedDataWarning события.

InconsistentOwnedDataWarning(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigationBase)

Журналы для InconsistentOwnedDataWarning события.

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

Журналы для InvalidIncludePathError события.

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

Журналы для LazyLoadOnDisposedContextWarning события.

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

Журналы для ManyServiceProvidersCreatedWarning события.

MappedComplexPropertyIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IComplexProperty)

Журналы для MappedComplexPropertyIgnoredWarning события.

MappedEntityTypeIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IEntityType)

Журналы для MappedEntityTypeIgnoredWarning события.

MappedNavigationIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigationBase)

Журналы для MappedNavigationIgnoredWarning события.

MappedPropertyIgnoredWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IProperty)

Журналы для MappedPropertyIgnoredWarning события.

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

Журналы для MultipleInversePropertiesSameTargetWarning события.

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

Журналы для MultipleNavigationProperties события.

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

Журналы для MultiplePrimaryKeyCandidates события.

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

Журналы для MultiplePrimaryKeyCandidates события.

NavigationBaseIncluded(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigationBase)

Журналы для NavigationBaseIncluded события.

NavigationBaseIncludeIgnored(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigationBase)

Журналы для NavigationBaseIncludeIgnored события.

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

Журналы для NavigationLazyLoading события.

NoEntityTypeConfigurationsWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, Assembly)

Журналы для NoEntityTypeConfigurationsWarning события.

NonDefiningInverseNavigationWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IEntityType, MemberInfo, IEntityType, MemberInfo, MemberInfo)
Устаревшие.

Журналы для NonDefiningInverseNavigationWarning события.

NonNullableInverted(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Устаревшие.

Журналы для NonNullableInverted события.

NonNullableReferenceOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation, INavigation)
Устаревшие.

Журналы для NonNullableReferenceOnBothNavigations события.

NonNullableReferenceOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation, IReadOnlyNavigation)
Устаревшие.

Журналы для NonNullableReferenceOnBothNavigations события.

NonNullableReferenceOnDependent(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Устаревшие.

Журналы для NonNullableReferenceOnDependent события.

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

Журналы для NonOwnershipInverseNavigationWarning события.

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

Журналы для NonOwnershipInverseNavigationWarning события.

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

Журналы для OldModelVersionWarning события.

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

Журналы для OptimisticConcurrencyException события.

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

Журналы для OptimisticConcurrencyException события.

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

Журналы для OptimisticConcurrencyException события.

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

Журналы для OptimisticConcurrencyException события.

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

Журналы для PossibleIncorrectRequiredNavigationWithQueryFilterInteractionWarning события.

PossibleUnintendedCollectionNavigationNullComparisonWarning(IDiagnosticsLogger<DbLoggerCategory.Query>, INavigation)

Журналы для PossibleUnintendedCollectionNavigationNullComparisonWarning события.

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

Журналы для PossibleUnintendedReferenceComparisonWarning события.

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

Журналы для PropertyChangeDetected события.

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

Журналы для PropertyChangeDetected события.

QueryCanceled(IDiagnosticsLogger<DbLoggerCategory.Query>, Type)

Журналы для QueryCanceled события.

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

Журналы для QueryCompilationStarting события.

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

Журналы для QueryCompilationStarting события.

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

Журналы для QueryExecutionPlanned события.

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

Журналы для QueryExecutionPlanned события.

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

Журналы для QueryIterationFailed события.

RedundantAddServicesCallWarning(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, IServiceProvider)

Журналы для RedundantAddServicesCallWarning события.

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

Журналы для RedundantForeignKeyWarning события.

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

Журналы для RedundantIndexRemoved события.

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

Журналы для RedundantIndexRemoved события.

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

Журналы для ReferenceChangeDetected события.

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

Журналы для ReferenceChangeDetected события.

RequiredAttributeInverted(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Устаревшие.

Журналы для RequiredAttributeInverted события.

RequiredAttributeOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation, INavigation)
Устаревшие.

Журналы для RequiredAttributeOnBothNavigations события.

RequiredAttributeOnBothNavigations(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation, IReadOnlyNavigation)
Устаревшие.

Журналы для RequiredAttributeOnBothNavigations события.

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)

Журналы для RequiredAttributeOnCollection события.

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation)

Журналы для RequiredAttributeOnCollection события.

RequiredAttributeOnDependent(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)
Устаревшие.

Журналы для RequiredAttributeOnDependent события.

RequiredAttributeOnSkipNavigation(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlySkipNavigation)

Журналы для RequiredAttributeOnSkipNavigation события.

RequiredAttributeOnSkipNavigation(IDiagnosticsLogger<DbLoggerCategory.Model>, ISkipNavigation)

Журналы для RequiredAttributeOnSkipNavigation события.

RowLimitingOperationWithoutOrderByWarning(IDiagnosticsLogger<DbLoggerCategory.Query>)

Журналы для RowLimitingOperationWithoutOrderByWarning события.

SaveChangesCanceled(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext)

Журналы для SaveChangesFailed события.

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

Журналы для SaveChangesFailed события.

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

Журналы для SaveChangesCompleted события.

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

Журналы для SaveChangesCompleted события.

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

Журналы для SaveChangesFailed события.

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

Журналы для SaveChangesFailed события.

SaveChangesStarting(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext)

Журналы для SaveChangesStarting события.

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

Журналы для SaveChangesStarting события.

SensitiveDataLoggingEnabledWarning<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>)

Журналы для SensitiveDataLoggingEnabledWarning события.

ServiceProviderCreated(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>, IServiceProvider)

Журналы для ServiceProviderCreated события.

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

Журналы для ServiceProviderDebugInfo события.

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

Журналы для ShadowForeignKeyPropertyCreated события.

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

Журналы для ShadowPropertyCreated события.

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

Журналы для ShadowPropertyNameNotValidIdentifierWarning события.

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

Журналы для CollectionChangeDetected события.

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

Журналы для CollectionChangeDetected события.

SkippedEntityTypeConfigurationWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, Type)

Журналы для SkippedEntityTypeConfigurationWarning события.

StartedTracking(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry)

Журналы для StartedTracking события.

StartedTrackingSensitive(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>, InternalEntityEntry)

Журналы для StartedTracking события.

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

Журналы для StateChanged события.

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

Журналы для StateChanged события.

StringEnumValueInJson(IDiagnosticsLogger<DbLoggerCategory.Query>, Type)

Журналы для StringEnumValueInJson события.

TypeLoadingErrorWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, Assembly, Exception)

Журналы для TypeLoadingErrorWarning события.

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

Журналы для ValueGenerated события.

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

Журналы для ValueGenerated события.

Применяется к