Browse Source

Edited release notes to reflect that we removed the GetDatabase method from MongoClient.

pull/122/head
rstam 13 years ago
parent
commit
c04fb9fc3b
  1. 4
      Release Notes/Change Log v1.7-Driver.txt
  2. 14
      Release Notes/Release Notes v1.7.md

4
Release Notes/Change Log v1.7-Driver.txt

@ -11,11 +11,11 @@ WriteConcernResult.cs
MongoClient.cs
new root class (see Release Notes)
use instead of MongoServer (or in addition to)
use instead of MongoServer
MongoClientSettings.cs
new class
used instead of MongoServerSettings
use instead of MongoServerSettings
MongoCollection.cs
all methods that used to return a SafeModeResult now return a WriteConcernResult

14
Release Notes/Release Notes v1.7.md

@ -67,19 +67,9 @@ The new way to start using the C# driver is:
var connectionString = "mongodb://localhost";
var client = new MongoClient(connectionString);
var database = client.GetDatabase("test"); // WriteConcern defaulted to Acknowledged
var server = client.GetServer();
var database = server.GetDatabase("test"); // WriteConcern defaulted to Acknowledged
If you use the old way to start using the driver the default WriteConcern will
be Unacknowledged, but if you use the new way (using MongoClient) the default
WriteConcern will be Acknowledged.
If for some reason you need access to the MongoServer object you can write this instead:
var connectionString = "mongodb://localhost";
var client = new MongoClient(connectionString);
var server = client.GetServer();
var database = server.GetDatabase("test");
You can also navigate from the MongoDatabase object to the MongoServer it belongs to:
var server = database.Server;
Loading…
Cancel
Save