internal async Task UpdateItemData(string message) { uint MaxId = 0; try { MaxId = (await _connection.Table <PostItem>().ToListAsync()).Max(x => x.ID); } catch { } PostItem newPost = new PostItem { ID = MaxId + 1, Content = message }; await _connection.InsertAsync(newPost); }
public Task <int> DeleteItemAsync(PostItem item) { return(_connection.DeleteAsync(item)); }
public Task <int> UpdateItemData(PostItem item) { return(_connection.InsertOrReplaceAsync(item)); }