[CSHARP-226] MongoGridFS.Find methods should return MongoCursor instead of IEnumerable Created: 17/May/11  Updated: 02/Apr/15  Resolved: 17/May/11

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.1

Type: Improvement Priority: Minor - P4
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   

If MongoGridFS.Find methods returned a real MongoCursor<MongoGridFSFileInfo> instead of IEnumerable<MongoGridFSFileInfo> callers could use cursor methods (e.g. SetSortOrder, SetSkip and SetLimit to do pagination).

This change should be backward compatible because MongoCursor<MongoGridFSFileInfo> implements IEnumerable<MongoGridFSFileInfo>.



 Comments   
Comment by Robert Stam [ 17/May/11 ]

Done.

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