/// <summary> /// 批量执行非查询SQL语句 /// </summary> /// <param name="ClientCode">客户端代码</param> /// <param name="DbName">数据库名称</param> /// <param name="TransID">事务ID</param> /// <param name="SqlText">Sql 文本</param> /// <param name="BatchParams">Sql 参数数组,参数值所在位置必须与参数名一致</param> /// <returns>返回影响的数据行</returns> public int BatchExecute(string ClientCode, string DbName, string TransID, string SqlText, List <object>[] BatchParams) { Data.DBConnection dbConn = Data.DBConfig.GetDBConnection(ClientCode, DbName); LogClientTransaction(TransID); IDataClient idc = GetDataClient(dbConn.DBType); return(idc.BatchExecute(TransID, dbConn.ConnectionString, SqlText, BatchParams)); }