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

DistinctAsync doesn't allow Sort or ToList

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.0.1
    • BSON
    • Visual Studio 2013

    Description

      I'm trying to use DistinctAsync with SortBy or ToListAsync, but it's not possible. Visual Studio does not show thes options when I use it.

      List<Job> distListe = await _mongoDb.Jobs
      .DistinctAsync(p=>p.Period,p=>p.Monthly)

      works, but no Sort, no ToList.

      Am I'm doing anything wrong ?

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            lorenzbb Lorenz Buchberger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: