从'NHibernate.Dialect.SQLiteDialect'上的'IsCurrentTimestampSelectStringCallable'获取值时出错

时间:2013-06-12 09:20:20

标签: c# sqlite nhibernate json.net

我现在处于死胡同:( 我试图通过NewtonSoft.Json序列化我的对象

   string json = JsonConvert.SerializeObject(doc);

并获得此类例外:

   Error getting value from 'IsCurrentTimestampSelectStringCallable' on 'NHibernate.Dialect.SQLiteDialect'.

内部异常:

  Database does not known how to define a current timestamp function

我在项目中使用这样的库 - nhibernate,newtonsoft.json.net和sqlite(http://system.data.sqlite.org/) - 所有这些都是针对.net 4.0

1 个答案:

答案 0 :(得分:0)

这是一个问题,json.net试图反序列化懒惰对象。