Пример #1
0
 public IEnumerable <T> FindList <T, FindT>(FindT FindEntity, string strSql, DbParameter[] dbParameter, string orderField, bool isAsc, int pageSize, int pageIndex, out int total)
     where T : class
     where FindT : class, new()
 {
     using (var dbConnection = Connection)
     {
         string sql = DatabaseCommon.QueryConditionSQL <FindT>(FindEntity).ToString();
         strSql += sql;
         return(FindList <T>(strSql, orderField, isAsc, pageSize, pageIndex, out total));
     }
 }
Пример #2
0
 public DataTable FindTable <T>(string strSql, T FindEntity) where T : class, new()
 {
     return(FindTable(strSql + DatabaseCommon.QueryConditionSQL <T>(FindEntity).ToString()));
 }