public void DeleteHistoryEntry(HistoryEntry entry) { if (_database.Delete(entry) != 0) { _page.Items.Remove(entry); _page.TotalItems--; ResetBindings(false); } }
public void DeleteHistoryEntry(HistoryEntry entry) { if (_database.Delete(entry) != 0) { ResetBindings(true); } }
public int Delete(HistoryEntry entry) { Debug.Assert(TableExists(SqlTable.WuHistory)); using (var connection = new SQLiteConnection(ConnectionString)) { connection.Open(); using (var database = new PetaPoco.Database(connection)) { return database.Delete(entry); } } }
public int Delete(HistoryEntry entry) { Debug.Assert(TableExists(SqlTable.WuHistory)); return Database.Delete(entry); }