RelationalStrings.DbFunctionExpressionIsNotMethodCall(Object) Method

Definition

The provided DbFunction expression '{expression}' is invalid. The expression must be a lambda expression containing a single method call to the target static method. Default values can be provided as arguments if required, e.g. '() => SomeClass.SomeMethod(null, 0)'

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

Parameters

expression
Object

Returns

Applies to

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