public SqlCondition AddHaving(ExpressionOperation operation, string exp) { var condition = new SqlCondition(operation, exp); if (_currentHavingExp != null) { _currentHavingExp.AddCondition(condition); } else { if (HavingConditions == null) { HavingConditions = new List <SqlConditionItem>(); } HavingConditions.Add(condition); } return(condition); }
public SqlCondition AddCondition(ExpressionOperation operation, string exp) { var condition = new SqlCondition(operation, exp); if (_currentWhereExp != null) { _currentWhereExp.AddCondition(condition); } else { if (WhereConditions == null) { WhereConditions = new List <SqlConditionItem>(); } WhereConditions.Add(condition); } return(condition); }