コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }