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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.7
    • Affects Version/s: 0.5
    • Component/s: None
    • Labels:
      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@mongodb.com Robert Stam
            Reporter:
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: