Exemple #1
0
        static void DeleteAllAccounts()
        {
            var coll = new AccountInfoCollection();

            coll.LoadAll();
            coll.MarkAllAsDeleted();
            coll.Save();
        }
Exemple #2
0
        static void PrintAllAccount()
        {
            var acc = new AccountInfoCollection();

            if (acc.LoadAll())
            {
                foreach (AccountInfo empp in acc)
                {
                    Console.WriteLine(empp.Address);
                }
            }
        }
Exemple #3
0
        static void DeleteAccount(Guid id)
        {
            var accountColl = new AccountInfoCollection();

            accountColl.LoadAll();
            AccountInfo emp = accountColl.FindByPrimaryKey(id);

            if (emp != null)
            {
                emp.MarkAsDeleted();
                accountColl.Save();
            }
        }