Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# SQLLite sqlite net pcl xamarin中Database.QueryAsync与ToListSync之间的差异_C#_Sqlite_Entity Framework_Sqlite Net Pcl - Fatal编程技术网

C# SQLLite sqlite net pcl xamarin中Database.QueryAsync与ToListSync之间的差异

C# SQLLite sqlite net pcl xamarin中Database.QueryAsync与ToListSync之间的差异,c#,sqlite,entity-framework,sqlite-net-pcl,C#,Sqlite,Entity Framework,Sqlite Net Pcl,在Xamarin项目中,我使用sqlite net pcl和SQLLite。 存在具有索引列pin的表。 当我尝试返回按列pin筛选的记录时,我可以这样做 return await Database.Table<Korisnici>().Where(x => x.Pin == pin ).ToListAsync(); return wait Database.Table().Where(x=>x.Pin==Pin.ToListAsync(); 或 return wait

在Xamarin项目中,我使用sqlite net pcl和SQLLite。 存在具有索引列pin的表。 当我尝试返回按列pin筛选的记录时,我可以这样做

return await Database.Table<Korisnici>().Where(x =>  x.Pin == pin ).ToListAsync();
return wait Database.Table().Where(x=>x.Pin==Pin.ToListAsync();

return wait Database.QueryAsync(“从Korisnici中选择*其中Pin=?”,Pin);
LINQ方法ToListAsync是否也使用where线索和索引查询SQLLite数据库 当sqlite net pcl返回表中的所有记录时,在内存中执行where

在classic ef中,我可以看到生成的sql,我非常确定查询是用where线索执行的,但我是sqlite net pcl库的新手,我不知道如何查看genrated TSQL或查看查询的执行计划

return await Database.QueryAsync<Korisnici>("SELECT * FROM Korisnici WHERE Pin= ? ", pin);