[CSHARP-590] Simplify server, database and collection settings Created: 05/Oct/12  Updated: 20/Mar/14  Resolved: 05/Dec/12

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.7
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

Issue Links:
Related
is related to CSHARP-604 Simplify GridFS settings Closed

 Description   

Simplify how server, database and collection settings are created and inherited.

This is accomplished by ensuring that the settings classes are simple settings holders with no-argument constructors and delaying the inheritance of settings until the corresponding database or collection object is created.

We are also removing the name from the database and collection settings and the defaultDocumentType from the collection settings. These are now considered intrinsic to the identity of the database or collection, whereas the settings are optional values that control some aspects of how the database or collection is used.

This is backward breaking but easy to fix.



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

Pushed to master.

Comment by auto [ 05/Dec/12 ]

Author:

{u'date': u'2012-12-04T22:15:29Z', u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-590, CSHARP-604: simplify server, database, collection and GridFS settings classes.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/b6a1192fd0806a1417ba96cd0fc33c7c5f02b700

Comment by Robert Stam [ 29/Nov/12 ]

Reopened to backport to 1.8 (if possible).

We may change our minds on this if it can't be accomplished in a way that is backwards compatible.

Comment by auto [ 18/Oct/12 ]

Author:

{u'date': u'2012-10-16T14:43:16-07:00', u'email': u'robert@10gen.com', u'name': u'rstam'}

Message: CSHARP-590: changed MongoDatabaseSettings and MongoCollectionSettings to use the new Setting<T> class.
Branch: x2.0
https://github.com/mongodb/mongo-csharp-driver/commit/3eda8a5dbe165bcd028ec69c8564e2157d6ba697

Comment by auto [ 05/Oct/12 ]

Author:

{u'date': u'2012-10-05T07:02:38-07:00', u'email': u'robert@10gen.com', u'name': u'rstam'}

Message: CSHARP-590: Removed AddressFamily from MongoServerSettings (because it's not a setting). Several commits preceding this one are also for CSHARP-590.
Branch: x2.0
https://github.com/mongodb/mongo-csharp-driver/commit/416b4f4e4728d68c6ae66c18c68ebc1795545863

Comment by auto [ 05/Oct/12 ]

Author:

{u'date': u'2012-10-05T07:02:38-07:00', u'email': u'robert@10gen.com', u'name': u'rstam'}

Message: CSHARP-590: Removed AddressFamily from MongoServerSettings (because it's not a setting). Several commits preceding this one are also for CSHARP-590.
Branch: x2.0
https://github.com/mongodb/mongo-csharp-driver/commit/416b4f4e4728d68c6ae66c18c68ebc1795545863

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