[CSHARP-687] UpdateBuilder.Combine cannot be used with UpdateBuilder<T> and vice versa Created: 18/Feb/13  Updated: 20/Mar/14  Resolved: 08/Mar/13

Status: Closed
Project: C# Driver
Component/s: Feature Request
Affects Version/s: 1.7
Fix Version/s: 1.8

Type: Improvement Priority: Minor - P4
Reporter: jonathan roeder Assignee: Craig Wilson
Resolution: Done Votes: 0
Labels: driver, update
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

n/a



 Description   

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



 Comments   
Comment by jonathan roeder [ 10/Mar/13 ]

Excellent, thanks Craig!

Comment by auto [ 08/Mar/13 ]

Author:

{u'date': u'2013-03-08T14:41:35Z', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-687: changed signature of Combine methods to take an IMongoUpdate instead of an UpdateBuilder.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/5ee4b826a64885b12c30885567acf222962776f1

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