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: Docs/reference/content/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,11 @@ type = "index"
10
10
The [Getting Started]({{< relref "getting_started\index.md" >}}) guide contains information about system requirements, installation, and a simple tutorial to get up and running quickly.
11
11
12
12
13
-
## What's new in 2.4
13
+
## What's new in 2.5
14
14
15
15
The [What's New]({{< relref "what_is_new.md" >}}) section contains the major new features of the driver.
16
16
17
-
The main new feature is support for version 3.4 of the server.
17
+
The main new feature is support for version 3.6 of the server.
The 2.5.0 driver adds support for [causal consistency](http://dochub.mongodb.org/core/causal-consistency) via the new
28
+
[`IClientSession`]({{< apiref "T_MongoDB_Driver_IClientSession" >}}) API. To start a new causally consistent session
29
+
set the `CausalConsistency` property to true in [`ClientSessionOptions`]({{< apiref "T_MongoDB_Driver_ClientSessionOptions" >}})
30
+
when calling the `StartSession` or `StartSessionAsync` methods in [`IMongoClient`]({{< apiref "T_MongoDB_Driver_IMongoClient" >}}).
31
+
32
+
### Servers older than 2.6.0 are no longer supported
33
+
34
+
The 2.5.0 driver only supports versions 2.6.0 and newer of the server. Servers older than 2.6.0 are no longer supported.
35
+
36
+
## What's New in 2.4.0
12
37
13
38
The 2.4.0 driver is a minor release that adds support for new features introduced in server 3.4 and fixes bugs reported since 2.3.0 was released.
14
39
@@ -129,3 +154,126 @@ continue to hold a number of open connections that are no longer needed.
129
154
130
155
If you find yourself needing to shut down a connection pool you can use the new UnregisterAndDisposeCluster
131
156
method of the ClusterRegistry class.
157
+
158
+
## What's New in 2.3.0
159
+
160
+
The 2.3.0 driver is a minor release with few new features. The most notable is discussed below.
161
+
162
+
### Support for .NET Core
163
+
164
+
You can now use the .NET driver with .NET Core.
165
+
166
+
The Nuget packages target two versions of the .NET frameworks: net45 and netstandard1.5. The net45 target allows the driver to be used with the full .NET Framework
167
+
version 4.5 and later, and the netstandard1.5 target allows the driver to be used with any framework that supports netstandard1.5, which includes .NET Core 1.0.
168
+
169
+
## What's New in 2.2.0
170
+
171
+
The 2.2 driver ships with a number of new features. The most notable are discussed below.
172
+
173
+
### Sync API
174
+
175
+
The 2.0 and 2.1 versions of the .NET driver featured a new async-only API. Version 2.2 introduces sync versions of every async method.
176
+
177
+
### Support for server 3.2
178
+
179
+
* Support for bypassing document validation for write operations on collections where document validation has been enabled
180
+
* Support for write concern for FindAndModify methods
181
+
* Support for read concern
182
+
* Builder support for new aggregation stages and new accumulators in $group stage
183
+
* Support for version 3 text indexes
184
+
185
+
## What's New in 2.1.0
186
+
187
+
The 2.1 driver ships with a number of new features. The most notable are discussed below.
188
+
189
+
### GridFS
190
+
191
+
[CSHARP-1191](https://jira.mongodb.org/browse/CSHARP-1191) - GridFS support has been implemented.
192
+
193
+
### LINQ
194
+
195
+
[CSHARP-935](https://jira.mongodb.org/browse/CSHARP-935) LINQ support has been rewritten and now targets the aggregation framework. It is a more natural translation and enables many features of LINQ that were previously not able to be translated.
196
+
197
+
Simply use the new [`AsQueryable`]({{< apiref "M_MongoDB_Driver_IMongoCollectionExtensions_AsQueryable__1" >}}) method to work with LINQ.
198
+
199
+
## What's New in 2.0.0
200
+
201
+
The 2.0.0 driver ships with a host of new features. The most notable are discussed below.
202
+
203
+
### Async
204
+
205
+
As has been requested for a while now, the driver now offers a full async stack. Since it uses Tasks, it is fully usable
206
+
with async and await.
207
+
208
+
While we offer a mostly backwards-compatible sync API, it is calling into the async stack underneath. Until you are ready
209
+
to move to async, you should measure against the 1.x versions to ensure performance regressions don't enter your codebase.
210
+
211
+
All new applications should utilize the New API.
212
+
213
+
### New API
214
+
215
+
Because of our async nature, we have rebuilt our entire API. The new API is accessible via MongoClient.GetDatabase.
216
+
217
+
- Interfaces are used ([`IMongoClient`]({{< apiref "T_MongoDB_Driver_IMongoClient" >}}), [`IMongoDatabase`]({{< apiref "T_MongoDB_Driver_IMongoDatabase" >}}), [`IMongoCollection<TDocument>`]({{< apiref "T_MongoDB_Driver_IMongoCollection_1" >}})) to support easier testing.
218
+
- A fluent Find API is available with full support for expression trees including projections.
219
+
220
+
``` csharp
221
+
var names = await db.GetCollection<Person>("people")
222
+
.Find(x => x.FirstName == "Jack")
223
+
.SortBy(x => x.Age)
224
+
.Project(x => x.FirstName + " " + x.LastName)
225
+
.ToListAsync();
226
+
```
227
+
228
+
- A fluent Aggregation API is available with mostly-full support for expression trees.
229
+
230
+
``` csharp
231
+
var totalAgeByLastName = await db.GetCollection<Person>("people")
232
+
.Aggregate()
233
+
.Match(x => x.FirstName == "Jack")
234
+
.GroupBy(x => x.LastName, g => new { _id = g.Key, TotalAge = g.Sum(x => x.Age)})
235
+
.ToListAsync();
236
+
```
237
+
238
+
- Support for dynamic.
239
+
240
+
``` csharp
241
+
var person = new ExpandoObject();
242
+
person.FirstName = "Jane";
243
+
person.Age = 12;
244
+
person.PetNames = new List<dynamic> { "Sherlock", "Watson" }
0 commit comments