public virtual void ExpressionsToQuery(SqlDaQuery queryToAddTo, DaoCriteria crit, ClassMapping mapping) { if (crit != null) { if (crit.Expressions.Count > 0) { string colPrefix = _fullyQualifyColumnNames ? mapping.Table + "." : null; queryToAddTo.Sql.Append(" WHERE "); ExpressionListToQuery(queryToAddTo, crit.BoolType, crit.Expressions, mapping, colPrefix); } } }