[CSHARP-2757] Unable to call ToString on Projections Created: 26/Sep/19 Updated: 28/Oct/23 Resolved: 08/Oct/19 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Linq |
| Affects Version/s: | 2.9.1 |
| Fix Version/s: | 2.9.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jake Sta Teresa | Assignee: | Dmitry Lukyanov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Minor Change |
| Description |
|
I am trying to perform a query like the one below. Note that p.Date and p.Decimal are of type DateTime and decimal respectively. Calling ToString on the decimal value results in an exception whereas calling ToString on a DateTime value succeeds.
|
| Comments |
| Comment by Githook User [ 08/Oct/19 ] |
|
Author: {'name': 'Dmitry Lukyanov', 'username': 'DmitryLukyanov', 'email': 'dmitry.lukyanov@mongodb.com'}Message: |
| Comment by Githook User [ 08/Oct/19 ] |
|
Author: {'username': 'DmitryLukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'name': 'Dmitry Lukyanov'}Message: |