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/reference/driver/crud/linq.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
@@ -11,7 +11,7 @@ title = "LINQ"
11
11
12
12
## LINQ
13
13
14
-
The driver contains an implementation of [LINQ]({{< msdnref "bb397926" >}}) that targets the [aggregation framework]({{< docsref "aggregation" >}}). The aggregation framework holds a rich query language that maps very easily from a LINQ expression tree making it straightforward to understand the translation from a LINQ statement into an aggregation framework pipeline. To see a more complicated uses of LINQ from the driver, see the [AggregationSample]({{< srcref "MongoDB.Driver.Tests/Samples/AggregationSample.cs" >}}) source code.
14
+
The driver contains an implementation of [LINQ]({{< msdnref "bb397926" >}}) that targets the [aggregation framework]({{< docsref "aggregation" >}}). The aggregation framework holds a rich query language that maps very easily from a LINQ expression tree making it straightforward to understand the translation from a LINQ statement into an aggregation framework pipeline. To see a more complicated uses of LINQ from the driver, see the [AggregationSample]({{< testref "MongoDB.Driver.Tests/Samples/AggregationSample.cs" >}}) source code.
15
15
16
16
For the rest of this page, we'll use the following class:
17
17
@@ -320,7 +320,7 @@ var query = from p in collection.AsQueryable()
320
320
321
321
### Supported Methods
322
322
323
-
The method examples are shown in isolation, but they can be used and combined with all the other methods as well. You can view the tests for each of these methods in the [MongoQueryableTests]({{< srcref "MongoDB.Driver.Tests/Linq/MongoQueryableTests.cs" >}}).
323
+
The method examples are shown in isolation, but they can be used and combined with all the other methods as well. You can view the tests for each of these methods in the [MongoQueryableTests]({{< testref "MongoDB.Driver.Tests/Linq/MongoQueryableTests.cs" >}}).
Copy file name to clipboardExpand all lines: Docs/reference/content/reference/driver/definitions.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ Both of these will render the filter `{ x: 1 }`.
67
67
68
68
### Filter Definition Builder
69
69
70
-
_See the [tests]({{< srcref "MongoDB.Driver.Tests/FilterDefinitionBuilderTests.cs" >}}) for examples._
70
+
_See the [tests]({{< testref "MongoDB.Driver.Tests/FilterDefinitionBuilderTests.cs" >}}) for examples._
71
71
72
72
The [`FilterDefinitionBuilder<TDocument>`]({{< apiref "T_MongoDB_Driver_FilterDefinitionBuilder_1" >}}) provides a type-safe API for building up both simple and complex [MongoDB queries]({{< docsref "reference/operator/query/" >}}).
73
73
@@ -172,7 +172,7 @@ Both of these will render the projection `{ x: 1 }`.
172
172
173
173
### Projection Definition Builder
174
174
175
-
_See the [tests]({{< srcref "MongoDB.Driver.Tests/ProjectionDefinitionBuilderTests.cs" >}}) for examples._
175
+
_See the [tests]({{< testref "MongoDB.Driver.Tests/ProjectionDefinitionBuilderTests.cs" >}}) for examples._
176
176
177
177
The [`ProjectionDefinitionBuilder<TDocument>`]({{< apiref "T_MongoDB_Driver_ProjectionDefinitionBuilder_1" >}}) exists to make it easier to build up projections in MongoDB's syntax. For the projection `{ x: 1, y: 1, _id: 0 }`:
178
178
@@ -223,7 +223,7 @@ The driver supports using expression trees to render projections. The same expre
223
223
224
224
##### Find
225
225
226
-
_See the [tests]({{< srcref "MongoDB.Driver.Tests/Linq/Translators/FindProjectionTranslatorTests.cs" >}}) for examples._
226
+
_See the [tests]({{< testref "MongoDB.Driver.Tests/Linq/Translators/FindProjectionTranslatorTests.cs" >}}) for examples._
227
227
228
228
When a Find projection is defined using a lambda expression, it is run client-side. The driver inspects the lambda expression to determine which fields are referenced and automatically constructs a server-side projection to return only those fields.
229
229
@@ -259,14 +259,14 @@ The `_id` field is excluded automatically when we know for certain that it isn't
259
259
260
260
##### Aggregate
261
261
262
-
_See the [tests]({{< srcref "MongoDB.Driver.Tests/Linq/Translators/AggregateProjectionTranslatorTests_Project.cs" >}}) for examples._
262
+
_See the [tests]({{< testref "MongoDB.Driver.Tests/Linq/Translators/AggregateProjectionTranslatorTests_Project.cs" >}}) for examples._
263
263
264
264
When an aggregate projection is defined using a lambda expression, a majority of the [aggregation expression operators]({{< docsref "reference/operator/aggregation/#expression-operators" >}}) are supported and translated. Unlike a project for Find, no part of the lambda expression is run client-side. This means that all expressions in a projection for the [Aggregation Framework]({{< docsref "core/aggregation-pipeline/" >}}) must be expressible on the server.
265
265
266
266
267
267
##### Grouping
268
268
269
-
_See the [tests]({{< srcref "MongoDB.Driver.Tests/Linq/Translators/AggregateProjectionTranslatorTests_Group.cs" >}}) for examples._
269
+
_See the [tests]({{< testref "MongoDB.Driver.Tests/Linq/Translators/AggregateProjectionTranslatorTests_Group.cs" >}}) for examples._
270
270
271
271
A projection is also used when performing grouping in the [Aggregation Framework]({{< docsref "core/aggregation-pipeline/" >}}). In addition to the expression operators used in an aggregate projection, the [aggregation accumulator operators]({{< docsref "reference/operator/aggregation/group/#accumulator-operator" >}}) are also supported.
272
272
@@ -287,7 +287,7 @@ Both of these will render the sort `{ x: 1 }`.
287
287
288
288
### Sort Definition Builder
289
289
290
-
_See the [tests]({{< srcref "MongoDB.Driver.Tests/SortDefinitionBuilderTests.cs" >}}) for examples._
290
+
_See the [tests]({{< testref "MongoDB.Driver.Tests/SortDefinitionBuilderTests.cs" >}}) for examples._
291
291
292
292
The [`SortDefinitionBuilder<TDocument>`]({{< apiref "T_MongoDB_Driver_SortDefinitionBuilder_1" >}}) provides a type-safe API for building up [MongoDB sort syntax]({{< docsref "reference/method/cursor.sort/" >}}).
293
293
@@ -345,7 +345,7 @@ Both of these will render the update `{ $set: { x: 1 } }`.
345
345
346
346
### Update Definition Builder
347
347
348
-
_See the [tests]({{< srcref "MongoDB.Driver.Tests/UpdateDefinitionBuilderTests.cs" >}}) for examples._
348
+
_See the [tests]({{< testref "MongoDB.Driver.Tests/UpdateDefinitionBuilderTests.cs" >}}) for examples._
349
349
350
350
The [`UpdateDefinitionBuilder<TDocument>`]({{< apiref "T_MongoDB_Driver_UpdateDefinitionBuilder_1" >}}) provides a type-safe API for building the [MongoDB update specification]({{< docsref "reference/operator/update/" >}}).
351
351
@@ -405,7 +405,7 @@ Both of these will render the keys `{ x: 1 }`.
405
405
406
406
### Index Keys Definition Builder
407
407
408
-
_See the [tests]({{< srcref "MongoDB.Driver.Tests/IndexKeysDefinitionBuilderTests.cs" >}}) for examples._
408
+
_See the [tests]({{< testref "MongoDB.Driver.Tests/IndexKeysDefinitionBuilderTests.cs" >}}) for examples._
409
409
410
410
The [`IndexKeysDefinitionBuilder<TDocument>`]({{< apiref "T_MongoDB_Driver_IndexKeysDefinitionBuilder_1" >}}) provides a type-safe API to build an index keys definition.
Copy file name to clipboardExpand all lines: Docs/reference/content/reference/driver/expressions.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ class Pet
41
41
42
42
## Filters
43
43
44
-
We'll walk through the supported expressions below. The [tests]({{< srcref "MongoDB.Driver.Tests/Linq/Translators/PredicateTranslatorTests.cs" >}}) are also a good reference.
44
+
We'll walk through the supported expressions below. The [tests]({{< testref "MongoDB.Driver.Tests/Linq/Translators/PredicateTranslatorTests.cs" >}}) are also a good reference.
We'll walk through the supported expressions below. The [tests]({{< srcref "MongoDB.Driver.Tests/Linq/Translators/AggregateProjectTranslatorTests.cs" >}}) are also a good reference.
376
+
We'll walk through the supported expressions below. The [tests]({{< testref "MongoDB.Driver.Tests/Linq/Translators/AggregateProjectTranslatorTests.cs" >}}) are also a good reference.
0 commit comments