ChatDao chatDao = daoSession.getChatDao(); chatDao.queryBuilder().buildDelete().executeDeleteWithoutDetachingEntities();
但是,由于方法名称和文档状态可能会在会话缓存中留下过时的对象,如何从那里删除对象呢?
DaoSession.clear();
它将清除会话标识范围中的所有对象.