1
我没有到表的类映射。我指的是以下线程。将得到表行的数量,我申请了以下技术如何通过SQLiteAsyncConnection执行原始SQLite查询(具有多行结果)
How to perform raw SQLite query through SQLiteAsyncConnection
SQLiteAsyncConnection conn = new SQLiteAsyncConnection(DATABASE_NAME);
int profileCount = await conn.ExecuteScalarAsync<int>("select count(*) from " + PROFILE_TABLE);
现在,而不是获得的结果的行数,我想检索结果中多行数据。
在Java中,获得多行的结果数据,我将执行
Cursor cursor = database.rawQuery(sql, null);
cursor.moveToFirst();
while (!cursor.isAfterLast()) {
// For every cursor, obtain its col data by
// cursor.getLong(0), cursor.getInt(1), ...
cursor.moveToNext();
}
给出一个相同的SQL语句,我如何能实现使用SQLiteAsyncConnection
?