/ Home / HowTo / DAL

The DAL Test Program

The Load() Method

The inherited PersonManager.Load() method retrieves multiple records from the configured table. If there are no specified parameters, it retrieves all available records.

#region Test Methods

// Test the Load function.
private static void TestLoad(PersonManager personManager)
{
  Console.WriteLine();
  Console.WriteLine("TestLoad");

  Persons persons = personManager.Load();
  if (persons != null && persons.Count > 0)
  {
    foreach (Person person in persons)
    {
      WriteRowString(person);
    }
  }
}
#endregion
if (success)
{
  // Test function calls.
  TestLoad(personManager);

  Console.WriteLine("Press any key to continue . . .");
  Console.ReadKey();
}
The DAL Test Add() Method"
/ Home / HowTo / DAL

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.