var db = Database.Open();
dynamic entry = new ExpandoObject();
entry.DateValue = DateTimeOffset.Now;
db.Table.Insert(new[] { entry, entry, entry });
Result:
System.ArgumentException : Unable to cast object of type 'System.DateTimeOffset' to type 'System.IConvertible'.Couldn't store <07.06.2013 21:45:24 +04:00> in DateValue Column. Expected type is DateTime.
----> System.InvalidCastException : Unable to cast object of type 'System.DateTimeOffset' to type 'System.IConvertible'.
TestCase:
Result:
System.ArgumentException : Unable to cast object of type 'System.DateTimeOffset' to type 'System.IConvertible'.Couldn't store <07.06.2013 21:45:24 +04:00> in DateValue Column. Expected type is DateTime. ----> System.InvalidCastException : Unable to cast object of type 'System.DateTimeOffset' to type 'System.IConvertible'.