[CSHARP-3739] IAggregateFluent.Facet() fails to deserialize results if CamelCaseElementNameConvention is used Created: 15/Jul/21 Updated: 18/Apr/22 |
|
| Status: | Backlog |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 2.12.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Unknown |
| Reporter: | Damith G | Assignee: | Robert Stam |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
i'm trying to project to a different type inside the facet pipeline as shown below. everything works fine if i comment out the `CamelCaseElementNameConvention`. but throws `System.FormatException: 'Element 'AuthorName' does not match any field or property of class TestApplication.Program+AuthorDTO.'` if the convention is registered. here's a small repro:
it even works fine with `.AppendState()` and the problem only occurs with `.Facet()`
|