Esempio n. 1
0
 public async Task InsertManyAsync()
 {
     var items = Enumerable.Range(0, 100).Select(e => new User {
         Id = e, Name = $"Teddy_{e}"
     });
     await _collection.InsertManyAsync(items);
 }