public int AddItem(AddItemRequest request) { byte[] bookmark = new byte[Api.BookmarkMost]; int actualBookmarkSize; using (var update = new Update(Session, list, JET_prep.Insert)) { Api.SetColumn(session, list, listColumns["key"],request.Key,Encoding.Unicode); Api.SetColumn(session, list, listColumns["data"], request.Data); update.Save(bookmark, bookmark.Length,out actualBookmarkSize); } Api.JetGotoBookmark(session, list,bookmark, actualBookmarkSize); return (int) Api.RetrieveColumnAsInt32(session, list, listColumns["id"]); }