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

SortBy exception with enum property type

    XMLWordPrintable

    Details

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

      Description

      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)."

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: