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

Dictionary serializers should implement IBsonDocumentSerializer

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.1
    • Affects Version/s: None
    • Component/s: 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@mongodb.com Craig Wilson
            Reporter:
            stefan.sedich Stefan
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: