-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Refer StackOverflow question (http://stackoverflow.com/q/21227428/30007) for detailed description. The answer to that question also suggests a workaround in the meanwhile.
----------
var update = new UpdateBuilder<SomeClass>();
update.Set(x => x.Prop1, value1);
update.Set(x => x.Prop2, value2);
update.Set(x => x.Prop1, anotherValue1); // this throws a Duplicate element name error. It should overwrite the value of Prop1 with anotherValue1.
- duplicates
-
CSHARP-691 UpdateBuilder.Set throws InvalidOperationException when Set twice with the same element.
- Closed