0
我想最後得到插入我的查詢的ID此如何獲得最後插入sqlite的ID xamarin形成
public IEnumerable<DraftOrderInfoTable> SaveDraftOrderInfo(int orderno, int customerid, string customername, string customeremail, string orderdate)
{
var draftorderinfo = new DraftOrderInfoTable
{
OrderNo = orderno,
CustomerId = customerid,
CustomerName = customername,
CustomerEmail = customeremail,
OrderDate = orderdate,
};
_connection.Insert(draftorderinfo);
}
請告訴我如何獲得最後插入的ID?