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

Derive IMongoQuery, IMongoSortBy, IMongoUpdate, IMongoFields from IConvertibleToBsonDocument

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • 1.8.3
    • None
    • None

    Description

      For applications that deal with generic documents including produced by the driver builders would be much easier if empty interfaces IMongoQuery, IMongoSortBy, IMongoUpdate, IMongoFields were derived from IConvertibleToBsonDocument.

      Besides, completely empty interfaces are rather confusing in the public API, see this discussion, for example:
      http://stackoverflow.com/questions/3310936/interface-without-any-methods-bad-practice

      Attachments

        Activity

          People

            Unassigned Unassigned
            nightroman Roman Kuzmin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: