public string GetDisplayText() { StringBuilder buf = new StringBuilder(); buf.Append("{").Append((_fromElement == null) ? "no fromElement" : _fromElement.GetDisplayText()); buf.Append("}"); return(buf.ToString()); }
private static FromElement GetOrigin(FromElement fromElement) { var realOrigin = fromElement.RealOrigin; if (realOrigin != null) { return(realOrigin); } // work around that crazy issue where the tree contains // "empty" FromElements (no text); afaict, this is caused // by FromElementFactory.createCollectionJoin() var origin = fromElement.Origin; if (origin == null) { throw new QueryException("Unable to determine origin of join fetch [" + fromElement.GetDisplayText() + "]"); } return(origin); }
private static FromElement GetOrigin(FromElement fromElement) { var realOrigin = fromElement.RealOrigin; if (realOrigin != null) return realOrigin; // work around that crazy issue where the tree contains // "empty" FromElements (no text); afaict, this is caused // by FromElementFactory.createCollectionJoin() var origin = fromElement.Origin; if (origin == null) throw new QueryException("Unable to determine origin of join fetch [" + fromElement.GetDisplayText() + "]"); return origin; }