CoreStrings.InvalidPropertiesExpression(Object) Method

Definition

Caution

This API is now deprecated.

The properties expression '{expression}' is invalid. The expression should represent a simple property access: 't => t.MyProperty'. When specifying multiple properties, use an anonymous type: 't => new {{ t.MyProperty1, t.MyProperty2 }}'.

C#
public static string InvalidPropertiesExpression (object expression);
C#
[System.Obsolete]
public static string InvalidPropertiesExpression (object expression);
C#
[System.Obsolete]
public static string InvalidPropertiesExpression (object? expression);

Parameters

expression
Object

Returns

Attributes

Applies to

Product Versions (Obsolete)
Entity Framework Core 3.0, 3.1 (5.0, 6.0)