[CSHARP-532] Cannot set subclass using strongly typed update builder Created: 19/Jul/12 Updated: 20/Mar/14 Resolved: 19/Jul/12 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.5 |
| Fix Version/s: | 1.6 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Joe Waller | Assignee: | Craig Wilson |
| Resolution: | Done | Votes: | 0 |
| Labels: | C# | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
A BsonSerializationException is thrown when attempting to use the strongly typed update builder to set a subclass type. The following code reproduces the issue:
|
| Comments |
| Comment by Joe Waller [ 20/Jul/12 ] |
|
Wow, that was quick. Thanks! |
| Comment by auto [ 19/Jul/12 ] |
|
Author: {u'date': u'2012-07-19T06:44:17-07:00', u'email': u'craiggwilson@gmail.com', u'name': u'Craig Wilson'}Message: |
| Comment by Craig Wilson [ 19/Jul/12 ] |
|
Thanks for reporting. I can confirm this issue and we'll look into it. For now, you'll need to use the untyped builder for this particular property. |