示例#1
0
 /// <summary>
 /// 获取第一个行第一列结果
 /// </summary>
 public static object GetSingle(this StringBuilder sql, ParCollection prams)
 {
     using (DBDalOperate dal = new DBDalOperate())
     {
         return(dal.GetSingle(sql, prams));
     }
 }
示例#2
0
 /// <summary>
 /// 获取第一个行第一列结果
 /// </summary>
 public static object GetSingle(this AutoPar auto)
 {
     using (DBDalOperate dal = new DBDalOperate())
     {
         auto.End();
         return(dal.GetSingle(auto.strSql, auto.pars));
     }
 }