日期:2014-05-18  浏览次数:20442 次

|M| 澄清 RE:以后别单指某一个人进来,你这样令 晓风残月 呀 高歌呀 过客他们这样的高手很难做的。 那为什么那时会这样问
yanhuan1028()   (   )   信誉:100     2007-08-16   09:41:36     得分:   0  
以后别单指某一个人进来,你这样令   晓风残月   呀   高歌呀   过客他们这样的高手很难做的。
---------------------------------------------
原贴:http://community.csdn.net/Expert/topic/5712/5712237.xml?temp=.4747888
那是因为我的DLL源文件发给了幕白兄   他看起来容易

现在我把源码发上来大家看看怎么来调用他的事务最简单
using   System;
using   System.Data;
using   System.Data.SqlClient;
using   System.Collections;
using   System.Reflection;

using   System.Xml;
using   System.Text;

namespace   Jerry.Util
{
        public   sealed   class   SqlHelper
        {
                //   Fields
                public   static   String   ErrorMsg;

                //   Methods
                private   SqlHelper()
                {
                }

                private   static   void   AssignParameterValues(SqlParameter[]   commandParameters,   Object[]   parameterValues)
                {
                        if   ((commandParameters   !=   null)   &&   (parameterValues   !=   null))
                        {
                                if   (commandParameters.Length   !=   parameterValues.Length)
                                {
                                        throw   new   ArgumentException( "Parameter   count   does   not   match   Parameter   Value   count. ");
                                }
                                Int32   index   =   0;
                                Int32   length   =   commandParameters.Length;
                                while   (index   <   length)
                                {
                                        if   (parameterValues[index]   is   IDbDataParameter)
                                      &n