Generic lists, enumerables, etc... are not persisted as bson arrays

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 0.7
    • Affects Version/s: 0.5
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Given a class like this:

      public class Student
      {
      public ObjectId Id

      { get; set; }

      public List<int> Scores { get; set; }

      }

      Scores is not persisted as a bson array, but rather as a document.

      I would assume this pertains to any property that is not defined as an array.

      IEnumerable<T>
      ICollection<T>
      IList<T>
      HashSet<T>
      List<T>
      etc...

            Assignee:
            Robert Stam
            Reporter:
            Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: