Skip to content

Commit 7efa451

Browse files
committed
Adds local collection match expression visiting
1 parent 8f47b28 commit 7efa451

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Orm/Xtensive.Orm/Orm/Linq/Translator.Queryable.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@ private ProjectionExpression VisitCast(Expression source, Type targetType, Type
305305

306306
private Expression VisitContains(Expression source, Expression match, bool isRoot)
307307
{
308+
if (source.IsLocalCollection(context))
309+
match = Visit(match);
310+
308311
var matchedElementType = match.Type;
309312
var sequenceElementType = QueryHelper.GetSequenceElementType(source.Type);
310313
if (sequenceElementType != matchedElementType) {

0 commit comments

Comments
 (0)