Why is TSqlite3Dataset.GetLastInsertRowId protected? lazarus / 16-Databases ---------------------------------------------------------------------- eny · 2011-02-08 12:25 That ID is (almost) always required after having persisted a record. So why is this method protected and not public, so it can actually be used? ---------------------------------------------------------------------- Leledumbo · 2011-02-08 17:49 I don't really remember, but usually I don't access GetXXX or SetXXX method directly, but through the corresponding XXX property (unless it's defined as such, not as a property getter / setter). I hope TSqlite3Dataset follows the same principle. ---------------------------------------------------------------------- LuizAmérico · 2011-02-09 00:45 Because you can use LastInsertRowId ? ---------------------------------------------------------------------- eny · 2011-02-09 08:58 Quote from: LuizAmérico on February 09, 2011, 01:45:24 amBecause you can use LastInsertRowId ? Ah, I was thrown because Getxxx was in TSQLite3Dataset and LastInsertRowId is in TCustomSqliteDataset. Thx for the info.