Skip to content

Commit fab738d

Browse files
committed
Strip casts for prefetch call chain if any exist
1 parent e67adc3 commit fab738d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Orm/Xtensive.Orm/Orm/Internals/Prefetch/Nodes/ExpressionMapBuilder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Copyright (C) 2012 Xtensive LLC.
2-
// All rights reserved.
3-
// For conditions of distribution and use, see license.
1+
// Copyright (C) 2012-2021 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
44
// Created by: Denis Krjuchkov
55
// Created: 2012.02.24
66

@@ -63,7 +63,7 @@ protected override Expression VisitMethodCall(MethodCallExpression call)
6363
// All lambdas will be associated with single parent.
6464
call = (MethodCallExpression) source;
6565
ValidateMethodCall(call);
66-
source = call.Arguments[0];
66+
source = call.Arguments[0].StripCasts();
6767
var lambda = call.Arguments[1].StripQuotes();
6868
subprefetches.Add(lambda);
6969
}

0 commit comments

Comments
 (0)