Beispiel #1
0
 /// <summary>
 /// 获取对象实体
 /// </summary>
 public static T GetModel <T>(this StringBuilder sql, ParCollection prams = null)
 {
     using (DBDalOperate dal = new DBDalOperate())
     {
         return(dal.GetModel <T>(sql, prams));
     }
 }
Beispiel #2
0
 /// <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));
     }
 }