Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Commit a70fd5e

Browse files
committed
backport changes from v3
1 parent 02d2eb7 commit a70fd5e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Source/LinqToDB.EntityFrameworkCore/LinqToDBForEFToolsImplDefault.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -922,8 +922,9 @@ TransformInfo LocalTransform(Expression e)
922922

923923
if (typeof(IQueryable<>).IsSameOrParentOf(methodCall.Type) && methodCall.Type.Assembly != typeof(LinqExtensions).Assembly)
924924
{
925-
if (null == methodCall.Find(nonEvaluatableParameters,
926-
(c, t) => t.NodeType == ExpressionType.Parameter && c.Contains(t)))
925+
if ((dc == null || dc.MappingSchema.GetAttribute<ExpressionMethodAttribute>(methodCall.Type, methodCall.Method) == null)
926+
&& null == methodCall.Find(nonEvaluatableParameters,
927+
(c, t) => t.NodeType == ExpressionType.Parameter && c.Contains(t) || t.NodeType == ExpressionType.Extension))
927928
{
928929
// Invoking function to evaluate EF's Subquery located in function
929930

0 commit comments

Comments
 (0)