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