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

MongoGridFS.Find methods should return MongoCursor instead of IEnumerable

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.1
    • Affects Version/s: 1.0
    • Component/s: None
    • Labels:
      None

      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>.

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

              Created:
              Updated:
              Resolved: