/// <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); } }