Skip to content

Commit 659b2e4

Browse files
committed
CSHARP-629: add support for ToLowerInvariant and ToUpperInvariant in linq queries.
1 parent c9eba24 commit 659b2e4

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Driver/Linq/Translators/PredicateTranslator.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,14 +1208,8 @@ private IMongoQuery BuildStringQuery(MethodCallExpression methodCallExpression)
12081208
switch (stringMethodCallExpression.Method.Name)
12091209
{
12101210
case "ToLower":
1211-
caseInsensitive = true;
1212-
break;
12131211
case "ToLowerInvariant":
1214-
caseInsensitive = true;
1215-
break;
12161212
case "ToUpper":
1217-
caseInsensitive = true;
1218-
break;
12191213
case "ToUpperInvariant":
12201214
caseInsensitive = true;
12211215
break;

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ http://jira.mongodb.org/browse/CSHARP
3939
4040
4141
* Alex Brown https://github.com/alexjamesbrown
42+
* staywellandy https://github.com/staywellandy
4243

4344
If you have contributed and we have neglected to add you to this list please contact one of the maintainers to be added to the list (with apologies).

0 commit comments

Comments
 (0)