/// <summary> /// 获取对象实体 /// </summary> public static T GetModel <T>(this StringBuilder sql, ParCollection prams = null) { using (DBDalOperate dal = new DBDalOperate()) { return(dal.GetModel <T>(sql, prams)); } }
/// <summary> /// 获取对象实体 /// </summary> public static T GetModel <T>(this AutoPar auto) { using (DBDalOperate dal = new DBDalOperate()) { auto.End(); return(dal.GetModel <T>(auto.strSql, auto.pars)); } }