Codinggg/Lan/Cs Codinggg/Tools 【Cs】Linq2Db 文前言 簡易紀錄。 官方文件:LINQ to DB | Linq To DB 主文 初步使用 文件內就有,因此不做詳細描述。 取得新增得到的 PK 值 用法類似 .Insert() 一開始是從 linq2db Sqlite Insert之後取得插入的自增量ID值- 百花園路- 部落格園 發現該用法的。 db.InsertWithInt32IdentityAsync(); //回傳 int PK db.InsertWithIdentity(); //回傳 long PK 批量新增 ref: Bulk Copy (Bulk Insert) | Linq To DB