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

DistinctAsync doesn't allow Sort or ToList

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.1
    • Component/s: BSON
    • Environment:
      Visual Studio 2013

      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 ?

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

              Created:
              Updated:
              Resolved: