CoreStrings.InvalidIncludeExpression(Object) 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.
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
Entity Framework