Skip to content

Query: Remove object convert for Contains #20628

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Apr 14, 2020

Conversation

smitpatel
Copy link
Contributor

Resolves #20624

@smitpatel smitpatel force-pushed the smit/ExpressionTreesYouKnow branch from 98a95e3 to 94eb476 Compare April 14, 2020 19:49
@smitpatel smitpatel requested a review from a team April 14, 2020 19:54
@@ -33,6 +33,9 @@ public class CosmosSqlTranslatingExpressionVisitor : ExpressionVisitor
private static readonly MethodInfo _parameterListValueExtractor =
typeof(CosmosSqlTranslatingExpressionVisitor).GetTypeInfo().GetDeclaredMethod(nameof(ParameterListValueExtractor));

private static readonly MethodInfo _concatMethodInfo
= typeof(string).GetRuntimeMethod(nameof(string.Concat), new[] { typeof(object), typeof(object) });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should move to a shared internal class to avoid ad-hoc proliferation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed #20631

@smitpatel smitpatel merged commit 2ffa15d into master Apr 14, 2020
@smitpatel smitpatel deleted the smit/ExpressionTreesYouKnow branch April 14, 2020 21:48
smitpatel added a commit that referenced this pull request Apr 28, 2020
smitpatel added a commit that referenced this pull request Apr 28, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

List.Contains does not work with List<object>
2 participants