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

Resolve ambiguous method overloads in MongoQueryable

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.2.4
    • 2.2.3
    • Linq
    • None

    Description

      The following LINQ related methods in MongoQueryable are ambiguous with similar methods in IAsyncCursorSource:

      • FirstAsync
      • FirstOrDefaultAsync
      • SingleAsync
      • SingleOrDefaultAsync

      At first glance it appears that these can be made unambiguous simply by making them be extensions methods on IMongoQueryable instead of IQueryable.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: