Exemple #1
0
        /// <summary>
        /// 事务执行
        /// </summary>
        /// <param name="sqlParamList"></param>
        public void ExecuteSqlTranList(List <SqlParam> sqlParamList)
        {
            List <Dictionary <string, object> > ListDic = new List <Dictionary <string, object> >();
            Dictionary <string, object>         dicstr  = null;

            foreach (var item in sqlParamList)
            {
                dicstr = new Dictionary <string, object>();
                dicstr.Add(item.StrSql, item.Parameters);
                ListDic.Add(dicstr);
            }
            SQLServerHelper.ExecuteSqlTranList(ListDic);//事务执行
        }