예제 #1
0
파일: Test.cs 프로젝트: HelloAmy/01code
 /// <summary>
 /// 测试获取人员信息
 /// </summary>
 public static void TestGetAllPerson()
 {
     try
     {
         BPerson        bll        = new BPerson();
         List <MPerson> personList = bll.GetAllPersonInfo();
         if (personList != null && personList.Count > 0)
         {
             foreach (MPerson item in personList)
             {
                 Console.WriteLine(item.PersonName + "," + item.PersonHome);
             }
         }
     }
     catch (Exception ex)
     {
         string str = ex.ToString();
         Console.WriteLine(str);
     }
 }