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


CoreLoggerExtensions.MultipleInversePropertiesSameTargetWarning Метод

Определение

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

public static void MultipleInversePropertiesSameTargetWarning (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> diagnostics, System.Collections.Generic.IEnumerable<Tuple<System.Reflection.MemberInfo,Type>> conflictingNavigations, System.Reflection.MemberInfo inverseNavigation, Type targetType);
public static void MultipleInversePropertiesSameTargetWarning (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> diagnostics, System.Collections.Generic.IEnumerable<Tuple<System.Reflection.MemberInfo?,Type>> conflictingNavigations, System.Reflection.MemberInfo inverseNavigation, Type targetType);
static member MultipleInversePropertiesSameTargetWarning : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> * seq<System.Reflection.MemberInfo * Type> * System.Reflection.MemberInfo * Type -> unit
<Extension()>
Public Sub MultipleInversePropertiesSameTargetWarning (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Model), conflictingNavigations As IEnumerable(Of Tuple(Of MemberInfo, Type)), inverseNavigation As MemberInfo, targetType As Type)

Параметры

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Model>

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

conflictingNavigations
IEnumerable<Tuple<MemberInfo,Type>>

Список конфликтующих свойств навигации.

inverseNavigation
MemberInfo

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

targetType
Type

Тип целевого объекта.

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