diff --git a/NBCZ.DBUtility/DbHelper/DapperHelper.cs b/NBCZ.DBUtility/DbHelper/DapperHelper.cs
index c8e7b67..eac2821 100644
--- a/NBCZ.DBUtility/DbHelper/DapperHelper.cs
+++ b/NBCZ.DBUtility/DbHelper/DapperHelper.cs
@@ -30,6 +30,21 @@ public class DapperHelper
}
+ ///
+ ///返回table数据
+ ///
+ ///
+ public static DataTable ExecuteReaderToTable(string sql, object param = null, IDbTransaction transaction = null, int? commandTimeout = null, CommandType? commandType = null)
+ {
+ using (IDbConnection conn = new SqlConnection(connStr))
+ {
+ var reader = conn.ExecuteReader(sql, param, transaction, commandTimeout, commandType);
+ DataTable tb = new DataTable();
+ tb.Load(reader);
+ return tb;
+ }
+ }
+
///
/// 查询返回list
///