Skip to content

Commit 4fe9169

Browse files
authored
DOCSP-27275 - Add Console to WriteLine (#66)
* autobuilder * first draft
1 parent 0860866 commit 4fe9169

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/includes/fundamentals/code-examples/builders.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using MongoDB.Driver;
2-
using static System.Console;
32
using MongoDB.Bson;
43

54
namespace TestRun.Fundamentals;
@@ -18,10 +17,10 @@ public static void Main(string[] args)
1817
var projection = Builders<Flower>.Projection.Include("Name").Include("Price").Exclude("Id");
1918
var sort = Builders<Flower>.Sort.Ascending("Price").Descending("Category");
2019

21-
WriteLine("Finding documents...");
20+
Console.WriteLine("Finding documents...");
2221
var result = _flowerCollection.Find(filter).Sort(sort).Project(projection).toList();
2322

24-
WriteLine(result.ToJson());
23+
Console.WriteLine(result.ToJson());
2524

2625
var update = Builders<Flower>.Update.Mul("Price", 0.9);
2726
var result2 = _flowerCollection.UpdateOne(filter, update);

0 commit comments

Comments
 (0)