Deserialization discriminators are too lazy

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Long story short, this works:
      Foo ret = new Foo();
      Trace.TraceInformation("Doing stuff to

      {0}

      .", ret.ToJson());
      ret = collection.FindOneAs<Event>(someQuery);
      return ret;

      Take away the ToJson() call it breaks because BsonClassMap.AutoMap() does not get called which causes BsonClassMap.LookupActualType() to fail. I am not sure how to fix.

      Let me know if you need a better description and I can provide one.

            Assignee:
            Robert Stam (Inactive)
            Reporter:
            Justin Dearing
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: