[CSHARP-1316] Support Dictionary key = value Linq queries Created: 15/Jun/15  Updated: 09/Mar/16  Resolved: 09/Mar/16

Status: Closed
Project: C# Driver
Component/s: Linq
Affects Version/s: 1.10
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Luís Ferreira Assignee: Unassigned
Resolution: Won't Fix Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

For a type like

class C
        {
            [BsonDictionaryOptions(DictionaryRepresentation.Document)]
            public IDictionary H { get; set; } // serialized as { H : { x : 1, ... } }
        }

enable querying like

object someInt = 42;
var query = from c in _collection.AsQueryable<C>()
                   where c.H["x"] == someInt
                   select c;



 Comments   
Comment by Craig Wilson [ 09/Mar/16 ]

Hi Luis,

We have support for this in the 2.x series of the driver and will not be supporting it in the 1.x series.

Craig

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