public void DeleteItemsList(ItemsList itemsList) { database.Delete(itemsList); database.Query <ItemTies>("DELETE FROM [ItemTies] WHERE [IDItemsList] = " + itemsList.ID); }