/// <summary>
        /// 删除SysAgentInfo
        /// </summary>
        /// <param name="sysAgentInfo">SysAgentInfo实体对象</param>
        /// <returns>状态代码</returns>
        public int Delete(SysAgentInfo sysAgentInfo)
        {
            try
            {
                string sql = @"UPdate [SysUser] set [isdelete]=1 where Id=@uid;
                                Update [SysAgentInfo] set [isdelete]=1 where Id=@id";
                StatementParameterCollection parameters = new StatementParameterCollection();
                parameters.AddInParameter("@uid", DbType.Int64, sysAgentInfo.UserId);
                parameters.AddInParameter("@id", DbType.Int64, sysAgentInfo.Id);
                Object result  = baseDao.ExecNonQuery(sql, parameters);
                int    iReturn = Convert.ToInt32(result);

                return(iReturn);
            }
            catch (Exception ex)
            {
                throw new DalException("调用SysAgentInfo时,访问Delete时出错", ex);
            }
        }