Esempio n. 1
0
        /// <summary>
        /// 修改 删除 执行
        /// </summary>
        /// <param name="Ado"></param>
        /// <param name="_Sql"></param>
        /// <returns></returns>
        private bool Execute(SQL _Sql)
        {
            int _Count = 0;

            //如果开启了 Commit 状态
            if (Ado.CommitState)
            {
                _Count = Ado._DbConnection.Execute(_Sql.Code.ToString(), _Sql.GetDynamicParameters(), Ado._DbTransaction);
            }
            else
            {
                _Count = Ado.Execute(_Sql.Code.ToString(), _Sql.GetDynamicParameters());
            }

            return(_Count > 0);
        }