[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 |
||
| 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, |