DistinctAsync doesn't allow Sort or ToList

XMLWordPrintableJSON

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

      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 Stam
              Reporter:
              Lorenz Buchberger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: