Support Dictionary key = value Linq queries

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.10
    • Component/s: LINQ
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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;
      

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

              Created:
              Updated:
              Resolved: