Esempio n. 1
0
        public SelectStatement Where(SelectColumn selectColumn, Operator @operator, string value1, string value2)
        {
            WhereColumn whereColumn = new WhereColumn(selectColumn.Join, selectColumn.ColumnDef, selectColumn.Statement, @operator, value1, value2);

            WhereColumns.Add(whereColumn);

            return(this);
        }
Esempio n. 2
0
        public SelectStatement Where(string column, Operator @operator, string value1, string value2)
        {
            GetJoinAndColumnDef(column, (join, columnDef) =>
            {
                WhereColumn whereColumn = new WhereColumn(@join, columnDef, null, @operator, value1, value2);

                WhereColumns.Add(whereColumn);
            });

            return(this);
        }
Esempio n. 3
0
        private bool IsParamRequired(WhereColumn whereColumn)
        {
            switch (whereColumn.Operator)
            {
            case Operator.IsFalse:
            case Operator.IsTrue:
            case Operator.IsNull:
            case Operator.IsNotNull:
                return(false);
            }

            return(true);
        }