我无法弄清楚为什么计数查询总是返回1,我确信表中有多行,因为我已经将它们打印出来了。
SQLiteAsyncConnection dbConnection;// this is set
dbConnection.CreateTableAsync<PickingData>();// create the table
int LastInsertedId = await dbConnection.ExecuteScalarAsync<int>("select count(*) from " + "PickingData");
在拣货数据类中
[PrimaryKey, AutoIncrement, Column("_id")]
public int Id { get; set; }