Click here to Skip to main content
15,880,392 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
here is my code:
C#
  using (var db = new SQLite.SQLiteConnection(App.DB_Path))
  {
    var isItem = from i in Items.Where(x => x.IsChecked).ToList() select i;
    foreach (var item in isItem)
    {
       Items.Remove(item);
       item.IsChecked = false;
       var exists = db.Table<MyModel>().Where(c => c.Item ==      item.DisplayingItem).FirstOrDefault();
       if (exists != null)
         {
             db.RunInTransaction(() =>
             {
                 db.Delete(exists);
             });
         }
    }
}

So why is there a delay, the more items there are the more the delay.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900