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