/// <summary> /// 获取Count (int:int) /// </summary> public static int GetSingleForCount(this StringBuilder sql, ParCollection prams) { using (DBDalOperate dal = new DBDalOperate()) { return(dal.GetSingleForCount(sql, prams)); } }
/// <summary> /// 获取Count (int:int) /// </summary> public static int GetSingleForCount(this AutoPar auto) { using (DBDalOperate dal = new DBDalOperate()) { auto.End(); return(dal.GetSingleForCount(auto.strSql, auto.pars)); } }