/// <summary> /// 是否存在该记录 /// </summary> public bool Exists(int Id) { StringBuilder strSql = new StringBuilder(); strSql.Append("select count(1) from Auth_Menu"); strSql.Append(" where Id=@Id"); SqlParameter[] parameters = { new SqlParameter("@Id", SqlDbType.Int, 4) }; parameters[0].Value = Id; return(MssqlHelper.Exists(strSql.ToString(), parameters)); }