Skip to content

Commit 4d16315

Browse files
Boukerstam
authored andcommitted
CSHARP-2734: Correct GridFS documentation
1 parent 97406a7 commit 4d16315

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Docs/reference/content/reference/gridfs/findingfiles.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ For example, to find the newest revision of the file named "securityvideo" uploa
2222
```csharp
2323
IGridFSBucket bucket;
2424
var filter = Builders<GridFSFileInfo>.Filter.And(
25-
Builders<GridFSFileInfo>.Filter.EQ(x => x.Filename, "securityvideo"),
26-
Builders<GridFSFileInfo>.Filter.GTE(x => x.UploadDateTime, new DateTime(2015, 1, 1, 0, 0, 0, DateTimeKind.Utc)),
27-
Builders<GridFSFileInfo>.Filter.LT(x => x.UploadDateTime, new DateTime(2015, 2, 1, 0, 0, 0, DateTimeKind.Utc)));
25+
Builders<GridFSFileInfo>.Filter.Eq(x => x.Filename, "securityvideo"),
26+
Builders<GridFSFileInfo>.Filter.Gte(x => x.UploadDateTime, new DateTime(2015, 1, 1, 0, 0, 0, DateTimeKind.Utc)),
27+
Builders<GridFSFileInfo>.Filter.Lt(x => x.UploadDateTime, new DateTime(2015, 2, 1, 0, 0, 0, DateTimeKind.Utc)));
2828
var sort = Builders<GridFSFileInfo>.Sort.Descending(x => x.UploadDateTime);
2929
var options = new GridFSFindOptions
3030
{

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ Please see our [guidelines](CONTRIBUTING.md) for contributing to the driver.
107107
* Alexander Endris https://github.com/AlexEndris
108108
* Daniel Goldman [email protected]
109109
* Simon Green [email protected]
110+
* Bouke Haarsma https://github.com/Bouke
110111
* James Hadwen [email protected]
111112
* Nuri Halperin https://github.com/nurih
112113
* Jacob Jewell [email protected]

0 commit comments

Comments
 (0)