[CSHARP-458] Support LINQ queries on Nullable enums Created: 01/May/12  Updated: 02/Apr/15  Resolved: 22/May/12

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.4.2
Fix Version/s: 1.5

Type: New Feature Priority: Minor - P4
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Given these classes:

public enum E
{
    A,
    B
}
 
public class C
{
    public ObjectId Id;
    public E? E;
}

support queries like:

var query =
    from c in collection.AsQueryable()
    where c.E == E.A // or null
    select c;

Investigate whether more work is needed to support Nullable<T> in general (might result in a new JIRA).



 Comments   
Comment by Craig Wilson [ 22/May/12 ]

pulled into master.

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