Skip to content

Commit bda1462

Browse files
committed
wip
1 parent 7fb2249 commit bda1462

File tree

10 files changed

+330
-158
lines changed

10 files changed

+330
-158
lines changed

source/crud/query/specify-query.txt

+320-148
Large diffs are not rendered by default.

source/includes/fundamentals/code-examples/specify-query/FindAndBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
var filter = builder.And(builder.Gte(g => g.EstablishedYear, 1985), builder.Ne(r => r.Make, "Kiesel"));
55

66
// Finds all documents that match the filter
7-
var result = _guitarsCollection.Find(filter).ToList();
7+
var result = guitarCollection.Find(filter).ToList();
88

99
foreach (var doc in result)
1010
{

source/includes/fundamentals/code-examples/specify-query/FindAndPOCO.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Finds all documents with an "establishedYear" value greater than 1985
22
// and a "make" value that is not equal to "Kiesel"
3-
var results = _guitarsCollection.Find(g => g.EstablishedYear >= 1985 && r.Make != "Kiesel").ToList();
3+
var results = guitarCollection.Find(g => g.EstablishedYear >= 1985 && r.Make != "Kiesel").ToList();
44

55
foreach (var doc in results)
66
{

source/includes/fundamentals/code-examples/specify-query/FindEqBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var filter = Builders<Guitar>.Filter.Eq(g => g.Make, "Fender");
33

44
// Finds all documents that match the filter
5-
var result = _guitarsCollection.Find(filter).ToList();
5+
var result = guitarCollection.Find(filter).ToList();
66

77
foreach (var doc in result)
88
{

source/includes/fundamentals/code-examples/specify-query/FindEqPOCO.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Finds all documents with a "make" value of "Fender"
2-
var results = _guitarsCollection.Find(g => g.Make == "Fender").ToList();
2+
var results = guitarCollection.Find(g => g.Make == "Fender").ToList();
33

44
foreach (var doc in results)
55
{

source/includes/fundamentals/code-examples/specify-query/FindExistsBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var filter = Builders<Guitar>.Filter.Exists(g => g.Rating);
33

44
// Finds all documents that match the filter
5-
var result = _guitarsCollection.Find(filter).ToList();
5+
var result = guitarCollection.Find(filter).ToList();
66

77
foreach (var doc in result)
88
{

source/includes/fundamentals/code-examples/specify-query/FindGtBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var filter = Builders<Guitar>.Filter.Gt(g => g.EstablishedYear, 1985);
44

55
// Finds all documents that match the filter
6-
var result = _guitarsCollection.Find(filter).ToList();
6+
var result = guitarCollection.Find(filter).ToList();
77

88
foreach (var doc in result)
99
{

source/includes/fundamentals/code-examples/specify-query/FindGtPOCO.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Finds all documents with am "establishedYear" value greater than 1985
2-
var results = _guitarsCollection.Find(g => g.EstablishedYear > 1985).ToList();
1+
// Finds all documents with an "establishedYear" value greater than 1985
2+
var results = guitarCollection.Find(g => g.EstablishedYear > 1985).ToList();
33

44
foreach (var doc in results)
55
{

source/includes/fundamentals/code-examples/specify-query/FindRegexBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var filter = Builders<Guitar>.Filter.Regex(g => g.Make, "^G");
33

44
// Finds all documents that match the filter
5-
var result = _guitarsCollection.Find(filter).ToList();
5+
var result = guitarCollection.Find(filter).ToList();
66

77
foreach (var doc in result)
88
{

source/includes/fundamentals/code-examples/specify-query/FindSizeBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var filter = Builders<Guitar>.Filter.Size(g => g.Models, 3);
33

44
// Finds all documents that match the filter
5-
var result = _guitarsCollection.Find(filter).ToList();
5+
var result = guitarCollection.Find(filter).ToList();
66

77
foreach (var doc in result)
88
{

0 commit comments

Comments
 (0)