由于 Android 7.0 SQlite 问题,我最近从 SQLite.NET 转到 SQLite-net-pcl。
在此过程中,我更新了所有库,并且在插入/删除等方面一切正常。
我遇到的唯一问题是,每次我从数据库中检索项目时,它的 ID 始终为 0。这会导致更新项目出现问题。以前有人遇到过这个问题吗?
[SQLite.PrimaryKey, SQLite.AutoIncrement]
public int ID { get; set; }
public string objectId { get; set; }
public DateTime createdAt { get; set; }
public DateTime updatedAt { get; set; }
public string Title { get; set; }
提前致谢。