[CSHARP-644] Deprecate MongoServer and MongoDatabase indexers in favor of GetDatabase and GetCollection Created: 11/Dec/12  Updated: 20/Mar/14  Resolved: 11/Dec/12

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

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


 Description   

The MongoServer and MongoDatabase indexers are redundant with the GetDatabase and GetCollection methods. While they have the advantage of brevity, they have the disadvantage of not being pure indexers (some of the arguments don't feel like indexes) and they also can't take type parameters which certain overloads of GetCollection require.

Rather than have two ways of doing the same thing we are going to deprecate the indexers and standardize on GetDatabase and GetCollection.



 Comments   
Comment by auto [ 11/Dec/12 ]

Author:

{u'date': u'2012-12-11T03:57:04Z', u'email': u'robert@10gen.com', u'name': u'rstam'}

Message: CSHARP-644: Remove indexers from MongoServer and MongoDatabase and standardize on GetDatabase and GetCollection.
Branch: x2.0
https://github.com/mongodb/mongo-csharp-driver/commit/28522250aca0f36a8c94d0918a40f47adb1cb891

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