CoreStrings.InvalidIncludeExpression(Object) Method

Definition

The expression '{expression}' is invalid inside an 'Include' operation, since it does not represent a property access: 't => t.MyProperty'. To target navigations declared on derived types, use casting ('t => ((Derived)t).MyProperty') or the 'as' operator ('t => (t as Derived).MyProperty'). Collection navigation access can be filtered by composing Where, OrderBy(Descending), ThenBy(Descending), Skip or Take operations. For more information on including related data, see https://go.microsoft.com/fwlink/?LinkID=746393.

public static string InvalidIncludeExpression (object expression);
public static string InvalidIncludeExpression (object? expression);
static member InvalidIncludeExpression : obj -> string
Public Shared Function InvalidIncludeExpression (expression As Object) As String

Parameters

expression
Object

Returns

Applies to