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


CoreLoggerExtensions.RequiredAttributeOnBothNavigations Метод

Определение

Перегрузки

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

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

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

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

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

Исходный код:
CoreLoggerExtensions.cs

Внимание!

Теперь этот API является нерекомендуемым.

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

[System.Obsolete]
public static void RequiredAttributeOnBothNavigations (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> diagnostics, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation firstNavigation, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation secondNavigation);
[<System.Obsolete>]
static member RequiredAttributeOnBothNavigations : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation -> unit
<Extension()>
Public Sub RequiredAttributeOnBothNavigations (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Model), firstNavigation As IReadOnlyNavigation, secondNavigation As IReadOnlyNavigation)

Параметры

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Model>

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

firstNavigation
IReadOnlyNavigation

Первое свойство навигации.

secondNavigation
IReadOnlyNavigation

Второе свойство навигации.

Атрибуты

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

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

Исходный код:
CoreLoggerExtensions.cs
Исходный код:
CoreLoggerExtensions.cs
Исходный код:
CoreLoggerExtensions.cs

Внимание!

Теперь этот API является нерекомендуемым.

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

public static void RequiredAttributeOnBothNavigations (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> diagnostics, Microsoft.EntityFrameworkCore.Metadata.INavigation firstNavigation, Microsoft.EntityFrameworkCore.Metadata.INavigation secondNavigation);
[System.Obsolete]
public static void RequiredAttributeOnBothNavigations (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> diagnostics, Microsoft.EntityFrameworkCore.Metadata.INavigation firstNavigation, Microsoft.EntityFrameworkCore.Metadata.INavigation secondNavigation);
static member RequiredAttributeOnBothNavigations : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> * Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Metadata.INavigation -> unit
[<System.Obsolete>]
static member RequiredAttributeOnBothNavigations : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> * Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Metadata.INavigation -> unit
<Extension()>
Public Sub RequiredAttributeOnBothNavigations (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Model), firstNavigation As INavigation, secondNavigation As INavigation)

Параметры

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Model>

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

firstNavigation
INavigation

Первое свойство навигации.

secondNavigation
INavigation

Второе свойство навигации.

Атрибуты

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