Beispiel #1
0
 public IEnumerable<T> Query<T>(string query, bool isRelative) where T : class
 {
     return isRelative
         ? _sitecoreContext.QueryRelative<T>(query)
         : _sitecoreContext.Query<T>(query);
 }
 public IEnumerable <T> GetItems <T>(string query) where T : class
 {
     return(_sitecoreContext.Query <T>(query));
 }
Beispiel #3
0
 public IEnumerable <TItem> GetByQuery(string query, Language language = null)
 {
     return(language == null
         ? context.Query <TItem>(query, inferType : true)
         : context.Query <TItem>(query, language, inferType: true));
 }