You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Release Notes/Release Notes v2.0.0.md
+8-11Lines changed: 8 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
-
C#/.NET Driver Version 2.0.0 Release Notes
1
+
C#/.NET Driver Version 2.0.0-beta3 Release Notes
2
2
==========================================
3
3
4
-
This is a major release which supports all MongoDB server versions since 2.2.
4
+
(Preliminary)
5
+
6
+
This is a major release which supports all MongoDB server versions since 2.4.
5
7
6
8
An online version of these release notes is available at:
7
9
@@ -52,6 +54,7 @@ Because of our async nature, we have rebuilt our entire API. The new API is acce
52
54
.Match(x => x.FirstName == "Jack")
53
55
.GroupBy(x => x.LastName, g => new { _id = g.Key, TotalAge = g.Sum(x => x.Age)})
54
56
.ToListAsync();
57
+
55
58
- Support for dynamic.
56
59
var person = new ExpandoObject();
57
60
person.FirstName = "Jane";
@@ -79,8 +82,7 @@ are some that may affect a greater number of people:
79
82
80
83
- .NET 3.5 and .NET 4.0 are no longer supported. If you still must use these platforms, then the 1.x series of the driver will continue to be developed.
81
84
82
-
- The nuget package mongocsharpdriver has been deprecated. In its place are 3 new nuget packages, MongoDB.Bson, MongoDB.Driver.Core, and MongoDB.Driver.
83
-
MongoDB.Driver is the replacement for mongocsharpdriver.
85
+
- The nuget package mongocsharpdriver now includes the legacy driver. It includes 3 new nuget packages, MongoDB.Bson, MongoDB.Driver.Core, and MongoDB.Driver. MongoDB.Driver is the replacement for mongocsharpdriver.
84
86
85
87
- We are no longer strong naming (CSHARP-616) our assemblies. Our previous strong naming was signed with a key in our public repository. This did
86
88
nothing other than satisfy certain tools. If you need MongoDB assemblies to be strongly named, it is relatively straight-forward to build the
@@ -93,15 +95,10 @@ assemblies yourself.
93
95
- MongoServer is a deprecated class. Anyone using MongoClient.GetServer() will encounter a deprecation warning and, depending on how your build is
94
96
setup, may receive an error. It is still safe to use this API until your code is ported to the new API.
95
97
96
-
- Improved the BsonSerializer infrastructure (CSHARP-933). Anyone who has written a custom serializer will be affected by this. The changes are minor,
97
-
but were necessary to support dynamic serializers as well as offering great speed improvements and memory management.
98
+
- Improved the BsonSerializer infrastructure (CSHARP-933). Anyone who has written a custom serializer will be affected by this. The changes are minor, but were necessary to support dynamic serializers as well as offering great speed improvements and memory management.
98
99
99
100
- ReadPreference(CSHARP-1043) and WriteConcern(CSHARP-1044) were rewritten. These classes are now immutable. Any current application
100
101
code that sets values on these classes will no longer function. Instead, you should use the With method to alter a ReadPreference or WriteConcern.
101
102
var writeConcern = myCurrentWriteConcern.With(journal: true);
102
103
103
-
- Dynamic DictionaryRepresentation (CSHARP-939) has been removed. Its intent was to store, in some manner, anything in a .NET dictionary. In practice,
104
-
this leads to the same values getting stored in different ways depending on factors such as a "." inside the key name. We made the decision to eliminate
105
-
this variability. This means that documents that used to serialize correctly may start throwing a BsonSerializationException with a message indicating
106
-
the key must be a valid string. CSHARP-1165 has a solution to this problem. It should be noted that we will continue to read these disparate
107
-
representations without error.
104
+
- Dynamic DictionaryRepresentation (CSHARP-939) has been removed. Its intent was to store, in some manner, anything in a .NET dictionary. In practice, this leads to the same values getting stored in different ways depending on factors such as a "." inside the key name. We made the decision to eliminate this variability. This means that documents that used to serialize correctly may start throwing a BsonSerializationException with a message indicating the key must be a valid string. CSHARP-1165 has a solution to this problem. It should be noted that we will continue to read these disparate representations without error.
0 commit comments