Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 greenDao 来管理我的数据库,我需要获取最后创建的条目。我该怎么做呢?有没有办法查询最后输入的 ID 或以某种方式保存以供以后使用?
这对我有用:
daoSession.getMyDao().queryBuilder().limit(1).orderDesc(MyDao.Properties.Id).list()
I have a code part with List<object> like that:
List<object>
List<object> Result= new List<object>(); Some sql connection code... SqlCommand com = new SqlCommand(@" Select TOP(10) a,b