Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1316

Support Dictionary key = value Linq queries

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 1.10
    • Linq
    • None

    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;
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            afaganga Luís Ferreira
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: