CoreStrings.ClientProjectionCapturingConstantInMethodInstance Method

Definition

The client projection contains a reference to a constant expression of '{constantType}' through the instance method '{methodName}'. This could potentially cause a memory leak; consider making the method static so that it does not capture constant in the instance. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information and examples.

C#
public static string ClientProjectionCapturingConstantInMethodInstance (object constantType, object methodName);
C#
public static string ClientProjectionCapturingConstantInMethodInstance (object? constantType, object? methodName);

Parameters

constantType
Object
methodName
Object

Returns

Applies to

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