Dictionary serializers should implement IBsonDocumentSerializer

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 2.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      With a model like so:

      public class Foo
              {
                  [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfDocuments)]
                  public Dictionary<string, object> Properties { get; set; }
              }
      

      We should be able to write a query like so:

      foos.Where(x => x.Properties["life"] == 42);
      

      Cheers
      Stefan

              Assignee:
              Craig Wilson
              Reporter:
              Stefan
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: