Answers for "project mongodb c#"

C#
0

project mongodb c#

int count = 1;
await collection.Find(FilterDefinition<Student>.Empty)
    .Project(x => new {x.FirstName, x.LastName})
    .ForEachAsync(
        student =>
        {
            Console.WriteLine($"{count}. \t FirstName: {student.FirstName} - LastName {student.LastName}");
            count++;
        });

Console.WriteLine();
Posted by: Guest on July-08-2020

Code answers related to "project mongodb c#"

C# Answers by Framework

Browse Popular Code Answers by Language