static void DeleteAllAccounts() { var coll = new AccountInfoCollection(); coll.LoadAll(); coll.MarkAllAsDeleted(); coll.Save(); }
static void PrintAllAccount() { var acc = new AccountInfoCollection(); if (acc.LoadAll()) { foreach (AccountInfo empp in acc) { Console.WriteLine(empp.Address); } } }
static void DeleteAccount(Guid id) { var accountColl = new AccountInfoCollection(); accountColl.LoadAll(); AccountInfo emp = accountColl.FindByPrimaryKey(id); if (emp != null) { emp.MarkAsDeleted(); accountColl.Save(); } }