接受此代码的语法:
public async Task UpdateLocationAsync(SOs_Locations locations)
{
var db = new SQLiteAsyncConnection(SQLitePath);
await db.UpdateAsync(locations);
}
...但我不明白 SQLite 引擎在简单地传递类实例时如何知道要更新哪个记录。SQLite 或 SQLite-net 引擎是否会偷看 ID 值并在幕后执行(在 SQLese 中):
UPDATE SOs_Locations
Set Bla = Bla, etc.
WHERE ID = locations.Id
?