Example #1
0
        public virtual SqlCondition AndWhere(SqlCondition condition)
        {
            if (this.And == null)
            {
                this.And = condition;
            }
            else
            {
                this.And.AndWhere(condition);
            }

            return(this);
        }
Example #2
0
        public virtual SqlCondition OrWhere(SqlCondition condition)
        {
            if (this.Or == null)
            {
                this.Or = condition;
            }
            else
            {
                this.Or.OrWhere(condition);
            }

            return(this);
        }
Example #3
0
        public SqlQueryBuilder Where(SqlCondition condition)
        {
            if (this.WhereCondition == null)
            {
                this.WhereCondition = condition;
            }
            else
            {
                this.WhereCondition.AndWhere(condition);
            }

            return(this);
        }