Using DateTime under db4o with native SODA queries?

324 views Asked by At

Under db4o, I'm attempting to constrain by a "new DateTime(2010,10,14)" but it doesn't seem to work - any opinions on how to fix this?

1

There are 1 answers

0
Contango On BEST ANSWER

Got it:

var query2 = db4o.db.Query();
query2.Constrain(typeof(TradingDay));
query2.Descend("_date").Constrain(new DateTime(2010,10,14));
IObjectSet result2 = query2.Execute();