[CSHARP-4401] Test full support for enums in filters Created: 04/Nov/22  Updated: 28/Oct/23  Resolved: 22/Nov/22

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

Type: Bug Priority: Unknown
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by VS-77 Add more enum test cases Backlog
is depended on by CSHARP-4358 Update tests that only test against L... Closed
Related
related to CSHARP-4410 Test full support for enums in aggreg... Closed

 Description   

The following fails:

var value = (E?)E.B;
 
var queryable = collection
    .AsQueryable()
    .Where(x => x.E == value);

Where the types are:

private class C
{
    public int Id { get; set; }
    public E E { get; set; }
}
 
private enum E { A, B }



 Comments   
Comment by Githook User [ 22/Nov/22 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-4401: Test full support for enums in filters.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/02957993aef5188667e24359c6e64c961f6f7514

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