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