Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="queryString"></param>
 /// <param name="parameters"></param>
 /// <returns></returns>
 public IList <T> GetInfos <T>(string queryString, Dictionary <string, object> parameters)
     where T : class, new()
 {
     try
     {
         return(m_dal.GetInfos <T>(queryString, parameters));
     }
     catch (Exception ex)
     {
         ExceptionProcess.ProcessWithResume(ex);
     }
     return(EmptyInstance.GetEmpty <List <T> >());
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="queryString"></param>
 /// <returns></returns>
 public IList <T> GetInfos <T>(string queryString)
     where T : class, new()
 {
     try
     {
         return(Cache.TryGetCache <IList <T> >(GetCacheKey <T>(queryString), new Func <IList <T> >(delegate()
         {
             return m_dal.GetInfos <T>(queryString);
         })));
     }
     catch (Exception ex)
     {
         ExceptionProcess.ProcessWithResume(ex);
     }
     return(EmptyInstance.GetEmpty <List <T> >());
 }