Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

case-insenstive CONTAINS on .net framework #2086

Open
donald-hanson opened this issue Dec 18, 2020 · 0 comments
Open

case-insenstive CONTAINS on .net framework #2086

donald-hanson opened this issue Dec 18, 2020 · 0 comments
Labels
discussion-wanted Need a discussion on an area feature-request New feature or request LINQ QUERY

Comments

@donald-hanson
Copy link

Is your feature request related to a problem? Please describe.
We are unable to use the case-insensitive CONTAINS call on .net framework because string.Contains(String, StringComparison) was not implemented until .net standard 2.1.

Describe the solution you'd like
Open to any alternative CONTAINS approach compatible with .net framework. One idea includes providing a built-in extension in the CosmosLinqExtensions class like IsDefined or IsPrimitive. Alternatively allow us to write a stub extension method bool Contains(this string input, string value, StringComparison comparison) which the SDK translates.

Describe alternatives you've considered

  • Added stub extension method as noted above trying to "trick" the expression visitor.
@j82w j82w added discussion-wanted Need a discussion on an area feature-request New feature or request LINQ labels Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion-wanted Need a discussion on an area feature-request New feature or request LINQ QUERY
Projects
None yet
Development

No branches or pull requests

4 participants