【发布时间】:2018-12-17 12:09:44
【问题描述】:
首先我在 Xamarin.Android 上使用 SQLite-Net-Pcl
我的问题是,我需要创建一个递归事件, 我需要连接所有这些递归事件(以防有人编辑或删除它们)。 而且我需要使用原始事件的 Id 将其连接到其他人
-> creates new recursive event
-> gets the id of inserted event
-> uses that id to connect all recursive events together on a "NumDocConnection"
我的 ID 是自动递增的,并且是主键。
那么,如何获取最后插入的事件的 id?或者这甚至是处理这种情况的好方法?
【问题讨论】:
标签: android sqlite xamarin xamarin.android sqlite-net