【发布时间】:2016-12-30 16:53:19
【问题描述】:
我在我的 Xamarin 应用程序中使用了 SQLite.Net.Async-PCL。选项 storeDateTimeAsTicks 为 - false。我将包更改为 SQLite.Net-PCL(因为我需要支持 Android 7。) 我使用此代码:
var _db= new SQLiteAsyncConnection(path);
选项 storeDateTimeAsTicks 默认为真。现在,我看不到 DateTime 字段中的旧值。
我可以将这些值(旧值)转换为新格式吗?这可能吗?
【问题讨论】:
-
使用
SQLiteAsyncConnection(path, false)打开数据库,在表中添加另一列并将字符串转换为记号...
标签: c# android sqlite datetime xamarin