public ExpressionsToQuery ( |
||
queryToAddTo | Query we're adding the expression to. | |
crit | Serializable critera to get the expressions from. | |
mapping | ClassMapping | Class mapping for the class we're dealing with. |
리턴 | void |
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);
}
}
}