static void Main(string[] args)
 {
     try
     {
         string recordCountStr = ConfigurationManager.AppSettings["RecordCount"];
         int    recordCount;
         if (!int.TryParse(recordCountStr, out recordCount))
         {
             // default to 1000 if the value
             // cannot be read from the config
             recordCount = 1000;
         }
         PersonDomain pd = new PersonDomain();
         pd.RegenerateData(recordCount);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
        static void Main(string[] args)
        {
            PersonDomain pd = new PersonDomain();

            pd.RegenerateData(1000);
        }