Ejemplo n.º 1
0
 /// <summary>
 /// 获取Count (int:int)
 /// </summary>
 public static int GetSingleForCount(this StringBuilder sql, ParCollection prams)
 {
     using (DBDalOperate dal = new DBDalOperate())
     {
         return(dal.GetSingleForCount(sql, prams));
     }
 }
Ejemplo n.º 2
0
 /// <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));
     }
 }