CoreStrings.PropertyIsNavigation Method

Definition

The property '{1_entityType}.{0_property}' is being accessed using the '{propertyMethod}' method, but is defined in the model as a navigation. Use either the '{referenceMethod}' or '{collectionMethod}' method to access navigations.

C#
public static string PropertyIsNavigation (object property, object entityType, object PropertyMethod, object ReferenceMethod, object CollectionMethod);
C#
public static string PropertyIsNavigation (object property, object entityType, object propertyMethod, object referenceMethod, object collectionMethod);
C#
public static string PropertyIsNavigation (object? property, object? entityType, object? propertyMethod, object? referenceMethod, object? collectionMethod);

Parameters

property
Object
entityType
Object
PropertyMethodpropertyMethod
Object
ReferenceMethodreferenceMethod
Object
CollectionMethodcollectionMethod
Object

Returns

Applies to

Product Versions
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0