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

SortBy exception with enum property type

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0
    • Component/s: API
    • Labels:
      None

      return await this.Collection.Find(t => t.Name.Equals(name)) .SortBy(t => t.Gender).Project(projection).ToListAsync();

      if Gender property is Enum type driver will throw exception "Unable to determine the serialization information for t => Convert(t.Gender)."

            Assignee:
            Unassigned Unassigned
            Reporter:
            cuongvu Cuong Vu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: