62,046
社区成员
发帖
与我相关
我的任务
分享
public int countByClass(int pclassid)
{
Hashtable htSyn = Hashtable.Synchronized(new Hashtable());
StringBuilder strSql = new StringBuilder();
strSql.Append("select count(productid)as 'count' from product where pclassid=@pclassid");
htSyn.Add("pclassid", pclassid);
return db.GetRecordCount(strSql.ToString(), htSyn);
}