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

Derive IMongoQuery, IMongoSortBy, IMongoUpdate, IMongoFields from IConvertibleToBsonDocument

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.8.3
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

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

              Created:
              Updated:
              Resolved: