public override string ToString() { StringBuilder r = new StringBuilder(); r.Append("("); FieldNamesToString(r); r.Append(q.ToString()); r.Append(")"); return(r.ToString()); }
public virtual string DistanceSubQueryNotAllowed() { var sqi = GetSubQueriesEnumerator(); while (sqi.MoveNext()) { SrndQuery leq = sqi.Current; if (leq is IDistanceSubQuery) { string m = ((IDistanceSubQuery)leq).DistanceSubQueryNotAllowed(); if (m != null) { return(m); } } else { return("subquery not allowed: " + leq.ToString()); } } return(null); }