Details
-
Bug
-
Resolution: Incomplete
-
Major - P3
-
None
-
None
-
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
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
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