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

UpdateBuilder.Combine cannot be used with UpdateBuilder<T> and vice versa

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.8
    • Affects Version/s: 1.7
    • Component/s: Feature Request
    • Environment:
      n/a

      It is not possible to pass an UpdateBuilder<T> into the UpdateBuilder.Combine method, or an UpdateBuilder into an UpdateBuilder<T>.Combine method. It is Perhaps the Combine methods should take IMongoUpdate as the argument type instead, or UpdateBuilder<T> could be made to inherit from UpdateBuilder and the UpdateBuilder<T>.Combine method switched to take UpdateBuilder instead of UpdateBuilder<T>.

            Assignee:
            craig.wilson@mongodb.com Craig Wilson
            Reporter:
            superduperjon jonathan roeder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: