I recently moved across from SQLite.NET to SQLite-net-pcl due to the Android 7.0 SQlite issue.
In the process I have updated all my libraries and all is working well with regards to insert/drop etc.
我唯一的问题是,每次从数据库中检索项目时,它的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; }
提前致谢。