我现在处于死胡同:(我正在尝试通过 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