[DOCS-5496] Comment on: "mongodb-ecosystem/drivers/csharp.txt" Created: 26/May/15  Updated: 03/Nov/17  Resolved: 28/May/15

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Incomplete Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 8 client, Ubuntu 12.04 MongoDB (VPS Azure)

Location: http://docs.mongodb.org/ecosystem/drivers/csharp/?jmp=docs
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36
Referrer: http://docs.mongodb.org/manual/applications/drivers/
Screen Resolution: 1600 x 900
repo: docs-ecosystem
source: drivers/csharp


Participants:
Days since reply: 8 years, 38 weeks, 1 day ago

 Description   

Hi,

I am trying to insert more than one record in a process with this code .

public static async Task<List<Entity>> InsertEntities(List<Entity> values)

{ string connectionString = "mongodb://127.0.0.1:27017"; MongoClient client = new MongoClient(connectionString); IMongoDatabase db = client.GetDatabase("OOSM"); var collection = db.GetCollection<Entity>("Entities"); await collection.InsertManyAsync(values); return values; }

But it only inserts one of three items in the list.

I couldn't find any solution.

Regards,
Serkan Uz


Generated at Thu Feb 08 07:50:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.