예제 #1
0
 /// <summary>
 /// 获取对象集合
 /// </summary>
 public static List <T> GetList <T>(this StringBuilder sql, ParCollection prams = null)
 {
     using (DBDalOperate dal = new DBDalOperate())
     {
         return(dal.GetList <T>(sql, prams));
     }
 }
예제 #2
0
 /// <summary>
 /// 获取对象集合
 /// </summary>
 public static List <T> GetList <T>(this  AutoPar auto)
 {
     using (DBDalOperate dal = new DBDalOperate())
     {
         auto.End();
         return(dal.GetList <T>(auto.strSql, auto.pars));
     }
 }