craiggwilson/Simple.Data.MongoDB — Issue #5: Can't insert arrays
Author: chriszero
Created: 2011-11-27 11:41:22+00:00
State: open

Hello,

It's not possible to insert arrays, there will be remain "Empty"
Example:

dynamic db = Database.Opener.OpenMongo("mongodb://localhost:27017/test");
var res = db.Foo.Insert(TimeStamp: item.Timestamp, Sensors: new List { 1, 2, 3 });

res.Sensors will be "Empty"
res.TimeStamp is set

Nothing is inserted into "Foo"