sqliteAsyncConnection选择计数始终返回1

时间:2018-07-23 14:36:32

标签: c# android sqlite

我无法弄清楚为什么计数查询总是返回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; }

0 个答案:

没有答案