The inherited PersonManager.Delete() method deletes the records that matches the key specified by the keyRecord parameter.
// Test the Delete function. private static void TestDelete(string name, PersonManager personManager) { Console.WriteLine(); Console.WriteLine("TestDelete"); if (NetString.HasValue(name)) { Person keyRecord = new Person() { Name = name }; personManager.SetExcludeKeys(); personManager.Delete(keyRecord); } }
if (success) { // Test function calls. TestLoad(personManager); TestAdd(personManager); TestRetrieve(personManager); TestUpdate(personManager); TestDelete(personManager); Console.WriteLine("Press any key to continue . . ."); Console.ReadKey(); }