Exemplo n.º 1
0
 /// <summary>
 /// query properties by lanbuda expression ByReadOnlyDB
 /// </summary>
 /// <param name="predicate"></param>
 /// <param name="selector"></param>
 /// <returns></returns>
 public IQueryable <object> QueryPropertyByReadOnlyDB(Expression <Func <SiteSetting, bool> > predicate, Expression <Func <SiteSetting, object> > selector)
 {
     try
     {
         return(_repository.QueryPropertyByReadOnlyDB(predicate, selector));
     }
     catch (Exception ex)
     {
         _log.LogError("SiteSettingAppService QueryPropertyByReadOnlyDB error occured:" + ex.Message);
         return(null);
     }
 }