开发者

Using DateTime under db4o with native SODA queries?

Under db4o, I'm attempting to con开发者_JAVA百科strain by a "new DateTime(2010,10,14)" but it doesn't seem to work - any opinions on how to fix this?


Got it:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜