Esempio n. 1
0
		protected virtual void AppendToken(QueryTranslator q, SqlString token)
		{
			if (expectingIndex > 0)
			{
				pathExpressionParser.SetLastCollectionElementIndexValue(token);
			}
			else
			{
				q.AppendWhereToken(token);
			}
		}
Esempio n. 2
0
		protected virtual void AppendToken(QueryTranslator q, string token)
		{
			if (expectingIndex > 0)
			{
				pathExpressionParser.SetLastCollectionElementIndexValue(new SqlString(token));
			}
			else
			{
				// a String.Empty can get passed in here.  If that occurs
				// then don't create a new SqlString for it - just ignore
				// it since it adds nothing to the sql being generated.
				if (!string.IsNullOrEmpty(token))
				{
					q.AppendWhereToken(new SqlString(token));
				}
			}
		}