CoreLoggerExtensions.MultipleInversePropertiesSameTargetWarning Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Logs for the MultipleInversePropertiesSameTargetWarning event.
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)
Parameters
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.Model>
The diagnostics logger to use.
- conflictingNavigations
- IEnumerable<Tuple<MemberInfo,Type>>
The list of conflicting navigation properties.
- inverseNavigation
- MemberInfo
The inverse navigation property.
- targetType
- Type
The target type.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework