//使用Dapper查询返回Datatable static void QueryDataTable() { DataTable dtPerson = PersonDB.QueryReturnDataTable(); foreach (DataRow dr in dtPerson.Rows) { Console.WriteLine(dr["Name"].ToString()); } }