示例#1
0
 public T QuerySingle<T>(string query, bool isRelative) where T : class
 {
     return isRelative
         ? _sitecoreContext.QuerySingleRelative<T>(query)
         : _sitecoreContext.QuerySingle<T>(query);
 }
示例#2
0
 public T QuerySingle <T>(string query, bool isLazy = false, bool inferType = false) where T : class
 {
     return(_sitecoreContext.QuerySingle <T>(query, isLazy, inferType));
 }
示例#3
0
 public TItem GetOneByQuery(string query)
 {
     return(context.QuerySingle <TItem>(query, inferType: true));
 }