Поделиться через


CoreLoggerExtensions.RequiredAttributeOnCollection Метод

Определение

Перегрузки

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation)

Регистрирует RequiredAttributeOnCollection событие.

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)

Регистрирует RequiredAttributeOnCollection событие.

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyNavigation)

Регистрирует RequiredAttributeOnCollection событие.

public static void RequiredAttributeOnCollection (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> diagnostics, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation navigation);
static member RequiredAttributeOnCollection : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation -> unit
<Extension()>
Public Sub RequiredAttributeOnCollection (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Model), navigation As IReadOnlyNavigation)

Параметры

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Model>

Используемое средство ведения журнала диагностика.

navigation
IReadOnlyNavigation

Свойство навигации.

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

RequiredAttributeOnCollection(IDiagnosticsLogger<DbLoggerCategory.Model>, INavigation)

Регистрирует RequiredAttributeOnCollection событие.

public static void RequiredAttributeOnCollection (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> diagnostics, Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
static member RequiredAttributeOnCollection : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> * Microsoft.EntityFrameworkCore.Metadata.INavigation -> unit
<Extension()>
Public Sub RequiredAttributeOnCollection (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Model), navigation As INavigation)

Параметры

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Model>

Используемое средство ведения журнала диагностика.

navigation
INavigation

Свойство навигации.

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