[CSHARP-4316] LINQ3 incorrect translate for type like as nullable Created: 09/Sep/22  Updated: 28/Oct/23  Resolved: 14/Sep/22

Status: Closed
Project: C# Driver
Component/s: LINQ3
Affects Version/s: 2.17.1
Fix Version/s: 2.18.0

Type: Bug Priority: Minor - P4
Reporter: Владимир Сетяев Assignee: James Kovacs
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File Program.cs    
Issue Links:
Duplicate
is duplicated by CSHARP-4317 Linq Provider V3 throws error when ac... Closed
Backwards Compatibility: Fully Compatible

 Description   

linq3 throws an exception if the type contains the "Value" property.



 Comments   
Comment by Githook User [ 14/Sep/22 ]

Author:

{'name': 'James Kovacs', 'email': 'jkovacs@post.harvard.edu', 'username': 'JamesKovacs'}

Message: CSHARP-4317: Added integration test demonstrating that CSHARP-4316 fix also resolved dictionary key/value projection issue. (#877)
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/f28c86ab88bddfb0581b218f266c121e4461884e

Comment by Githook User [ 14/Sep/22 ]

Author:

{'name': 'James Kovacs', 'email': 'jkovacs@post.harvard.edu', 'username': 'JamesKovacs'}

Message: CSHARP-4316: Ensure that LINQ3 only applies Nullable property translators to Nullables types and not properties with similar names.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/23331c428df1690c54fccfbe42d5a56cd9728204

Comment by Githook User [ 14/Sep/22 ]

Author:

{'name': 'Vladimir', 'email': 'setyaev_v@pgstudio.io'}

Message: CSHARP-4316: Fixed translation of types similar to Nullable<T>
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/11c8da80ee45df6f94eb9af9e1a35f290f3915c3

Comment by Boris Dogadov [ 09/Sep/22 ]

Hello setyaev_v@pgstudio.io , thank you for reporting this bug.
We have reproduced this behavior in LINQ3.

Please follow this ticket for further updates.

Generated at Wed Feb 07 21:47:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.