/// <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)); } }
/// <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)); } }