CoreStrings.IncludeOnNonEntity(Object) Method

Definition

Cannot apply the 'Include' operation with argument '{expression}'. Either the source is not a queryable of a known entity type or 'Include' has been applied after 'Select' method which projects a different entity type through navigation. Consider applying 'Include' before 'Select' method call.

C#
public static string IncludeOnNonEntity (object expression);
C#
public static string IncludeOnNonEntity (object? expression);

Parameters

expression
Object

Returns

Applies to

Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0