Exemple #1
0
 /// Adds a WHERE part of the SQL query.
 ///
 /// If a subquery parts aggregator is open, redirects the call to it instead.
 public void AddWherePart(string formatString, params object[] args)
 {
     if (_visitingSubQueryExpression)
     {
         _subQueryExpressionPartsAggregator.AddWherePart(formatString, args);
     }
     else
     {
         if (formatString != string.Empty)
         {
             WhereParts.Add(string.Format(formatString, args));
         }
     }
 }
Exemple #2
0
 public override void VisitWhereClause(WhereClause whereClause, QueryModel queryModel, int index)
 {
     _queryParts.AddWherePart(GetPsqlExpression(whereClause.Predicate));
     base.VisitWhereClause(whereClause, queryModel, index);
 }