[CSHARP-561] Deprecate some BsonDocument Add methods to AddRange and remove a few of the overloads Created: 08/Sep/12  Updated: 14/May/14  Resolved: 30/Nov/12

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.6
Fix Version/s: 1.8

Type: Improvement Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change

 Description   

Add methods normally add a single item and methods that add multiple items are normally called AddRange in .NET. We also want to eliminate a few of the less useful overloads to simplify the API.

Also, change from IDictionary<K,V> parameters to IEnumerable<KeyValuePair<K,V>> parameters.



 Comments   
Comment by Robert Stam [ 03/Dec/12 ]

Pushed to master.

Comment by auto [ 03/Dec/12 ]

Author:

{u'date': u'2012-12-02T15:34:03Z', u'email': u'robert@10gen.com', u'name': u'rstam'}

Message: CSHARP-561: rename some BsonDocument Add method to AddRange.

Conflicts:
MongoDB.Bson/ObjectModel/BsonDocument.cs
MongoDB.Driver/MongoCollection.cs
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/5bb72e562ea422d315541a945e544e08727af615

Comment by Robert Stam [ 30/Nov/12 ]

Backport to 1.8 is in code review.

Only backported the AddRange methods, the rest of x2.0 work on this issue (commit e11c83) is backward breaking.

Comment by Robert Stam [ 29/Nov/12 ]

Reopened to backport to 1.8.

Will only backport adding the AddRange methods. The existing Add methods will be marked as deprecated but will still be there and will forward to the new AddRange methods.

Comment by Robert Stam [ 09/Sep/12 ]

Pushed to x2.0.

Comment by auto [ 09/Sep/12 ]

Author:

{u'date': u'2012-09-08T09:19:58-07:00', u'email': u'robert@10gen.com', u'name': u'rstam'}

Message: CSHARP-561: rename some BsonDocument Add method to AddRange.
Branch: x2.0
https://github.com/mongodb/mongo-csharp-driver/commit/e11c83cdc560fce95c4dffc81639fea85bcc6a75

Comment by Robert Stam [ 08/Sep/12 ]

In code review.

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