[CSHARP-1583] Resolve ambiguous method overloads in MongoQueryable Created: 29/Feb/16  Updated: 18/May/16  Resolved: 02/Mar/16

Status: Closed
Project: C# Driver
Component/s: Linq
Affects Version/s: 2.2.3
Fix Version/s: 2.2.4

Type: Bug Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.



 Comments   
Comment by Githook User [ 17/Mar/16 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1583: Resolve ambiguous overloads in MongoQueryable.
Branch: v2.2.x
https://github.com/mongodb/mongo-csharp-driver/commit/353cdb06ad0b3f54e99e967c8a531cf7b4960021

Comment by Githook User [ 02/Mar/16 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1583: Resolve ambiguous overloads in MongoQueryable.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/16a5e1adb6d0c9f824ecf9c0df75f63fae04634f

Generated at Wed Feb 07 21:40:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.