Skip to content

Commit 1307cd2

Browse files
committed
Merge pull request #17 from RobGibbens/master
Updated MongoDB driver to 1.7 fixes #16
2 parents 770462e + ec094e9 commit 1307cd2

15 files changed

Lines changed: 30309 additions & 29630 deletions

src/ServiceStack.Authentication.MongoDB/ServiceStack.Authentication.MongoDB.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
</PropertyGroup>
3434
<ItemGroup>
3535
<Reference Include="MongoDB.Bson">
36-
<HintPath>..\packages\mongocsharpdriver.1.6.1\lib\net35\MongoDB.Bson.dll</HintPath>
36+
<HintPath>..\packages\mongocsharpdriver.1.7\lib\net35\MongoDB.Bson.dll</HintPath>
3737
</Reference>
3838
<Reference Include="MongoDB.Driver">
39-
<HintPath>..\packages\mongocsharpdriver.1.6.1\lib\net35\MongoDB.Driver.dll</HintPath>
39+
<HintPath>..\packages\mongocsharpdriver.1.7\lib\net35\MongoDB.Driver.dll</HintPath>
4040
</Reference>
4141
<Reference Include="ServiceStack.Common">
4242
<HintPath>..\..\lib\ServiceStack.Common.dll</HintPath>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="mongocsharpdriver" version="1.6.1" targetFramework="net35" />
3+
<package id="mongocsharpdriver" version="1.7" targetFramework="net35" />
44
</packages>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:String x:Key="/Default/FilterSettingsManager/CoverageFilterXml/@EntryValue">&lt;data&gt;&lt;IncludeFilters /&gt;&lt;ExcludeFilters /&gt;&lt;/data&gt;</s:String>
3+
<s:String x:Key="/Default/FilterSettingsManager/AttributeFilterXml/@EntryValue">&lt;data /&gt;</s:String></wpf:ResourceDictionary>

src/packages/mongocsharpdriver.1.6.1/Release Notes v1.6.1.txt

Lines changed: 0 additions & 68 deletions
This file was deleted.
-294 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/packages/mongocsharpdriver.1.6.1/License.rtf renamed to src/packages/mongocsharpdriver.1.7/License.rtf

Lines changed: 173 additions & 173 deletions
Large diffs are not rendered by default.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
C# Driver Version 1.7 Release Notes
2+
===================================
3+
4+
This is a major release.
5+
6+
This release has two major goals: to standardize on the name WriteConcern and
7+
to make Acknowledged the new default WriteConcern.
8+
9+
The following classes are being replaced:
10+
11+
- SafeMode is replaced by WriteConcern
12+
- SafeModeResult is replaced by WriteConcernResult
13+
- MongoSafeModeException is replaced by WriteConcernException
14+
15+
To make Acknowledged the new default WriteConcern without breaking any existing
16+
code that might rely on the old default we are introducing a new root class
17+
called MongoClient.
18+
19+
An online version of these release notes is available at:
20+
21+
https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Release%20Notes%20v1.7.md
22+
23+
File by file change logs are available at:
24+
25+
https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Change%20Log%20v1.7-Bson.txt
26+
https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Change%20Log%20v1.7-Driver.txt
27+
28+
The full list of JIRA issues resolved in this release is available at:
29+
30+
https://jira.mongodb.org/secure/IssueNavigator.jspa?mode=hide&requestId=12915
31+
32+
Documentation on the C# driver can be found at:
33+
34+
http://www.mongodb.org/display/DOCS/CSharp+Language+Center
35+
http://api.mongodb.org/csharp/current/
36+
37+
Standardizing on WriteConcern instead of SafeMode
38+
-------------------------------------------------
39+
40+
Some MongoDB drivers (the C# driver included) have used SafeMode as the name
41+
for the class which determines whether writes to the database are checked for
42+
errors. We are now standardizing across all drivers to use the name WriteConcern
43+
instead of SafeMode. The C# driver will continue to support the SafeMode class
44+
for a few releases but eventually it will be removed.
45+
46+
You should start using the new WriteConcern class, but we have also provided
47+
an implicit conversion from SafeMode to WriteConcern so any code that passes
48+
a SafeMode argument to a method taking a WriteConcern parameter will still
49+
compile and work.
50+
51+
New MongoClient class and default WriteConcern
52+
----------------------------------------------
53+
54+
The new default WriteConcern is Acknowledged, but we have introduced the new
55+
default in a way that doesn't alter the behavior of existing programs. We
56+
are introducing a new root class called MongoClient that defaults the
57+
WriteConcern to Acknowledged. The existing MongoServer Create methods are
58+
deprecated but when used continue to default to a WriteConcern of Unacknowledged.
59+
60+
In prior releases you would start using the C# driver with code like this:
61+
62+
var connectionString = "mongodb://localhost";
63+
var server = MongoServer.Create(connectionString); // deprecated
64+
var database = server.GetDatabase("test"); // WriteConcern defaulted to Unacknowledged
65+
66+
The new way to start using the C# driver is:
67+
68+
var connectionString = "mongodb://localhost";
69+
var client = new MongoClient(connectionString);
70+
var server = client.GetServer();
71+
var database = server.GetDatabase("test"); // WriteConcern defaulted to Acknowledged
72+
73+
If you use the old way to start using the driver the default WriteConcern will
74+
be Unacknowledged, but if you use the new way (using MongoClient) the default
75+
WriteConcern will be Acknowledged.

0 commit comments

Comments
 (0)