using (var db = new SQLiteConnection(dbPath))
{
foreach (var t in db.Table<AllContactNumber>().ToList<AllContactNumber>())
{
if (db.Table<AllContactNumber>().ToList<AllContactNumber>().Count > 0)
{
list_AllContactNumber.Add(t.phonenumber);
}
}
}
数据表AllContactNumber 只有300条数据 但是运行上面那段代码要3秒左右 实在卡。。。 这是为什么呢
------解决方案--------------------
别用这个table,table的内部是个完整的mapping,直接用sql 语句查询