-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.7.1
-
Component/s: None
-
None
-
Environment:MongoDB C# Driver.
UpdateBuilder.Set throws InvalidOperationException when Set twice with the same element.
Eg:
UpdateQuerySet.Set("Email", value1);
UpdateQuerySet.Set("Email", value2);
Ideally, it should have overwritten the first value. Or even, as a worst case, it should just add the second value along, since update({},
{"email": "value1", "email" : "value2"}works on perfectly as a command when given directly using the MongoDB shell.
- depends on
-
CSHARP-474 Review all exceptions thrown by the C# driver
- Closed
- is duplicated by
-
CSHARP-902 UpdateBuilder.Set should overwrite value if called twice with the same field
- Closed