Ejemplo n.º 1
0
        public string GetDisplayText()
        {
            StringBuilder buf = new StringBuilder();

            buf.Append("{").Append((_fromElement == null) ? "no fromElement" : _fromElement.GetDisplayText());
            buf.Append("}");
            return(buf.ToString());
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
		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;
		}