예제 #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteInExpression dst = obj as SQLiteInExpression;

            if (dst == null)
            {
                return(false);
            }

            if (_isIn != dst._isIn)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_expr, dst._expr, _select, dst._select, _table, dst._table))
            {
                return(false);
            }
            if (!RefCompare.CompareList <SQLiteExpression>(_exprlist, dst._exprlist))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteSelectColumn dst = obj as SQLiteSelectColumn;

            if (dst == null)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_expr, dst._expr, _tableName, dst._tableName))
            {
                return(false);
            }
            if (_asName != dst._asName)
            {
                return(false);
            }

            return(true);
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteCreateTriggerStatement dst = obj as SQLiteCreateTriggerStatement;

            if (dst == null)
            {
                return(false);
            }

            if (this._isTemp != dst._isTemp ||
                this._ifNotExists != dst._ifNotExists ||
                this._triggerTime != dst._triggerTime ||
                this._foreachClause != dst._foreachClause)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_triggerEventClause, dst._triggerEventClause,
                                        _table, dst._table, _whenExpr, dst._whenExpr))
            {
                return(false);
            }
            if (!RefCompare.CompareList <SQLiteStatement>(_slist, dst._slist))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteMultiSelectStatement dst = obj as SQLiteMultiSelectStatement;

            if (dst == null)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_first, dst._first, _next, dst._next))
            {
                return(false);
            }

            if (_op != dst._op)
            {
                return(false);
            }

            return(base.Equals(obj));
        }
예제 #5
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteDefaultColumnConstraint dst = obj as SQLiteDefaultColumnConstraint;

            if (dst == null)
            {
                return(false);
            }

            if (_id != dst._id)
            {
                return(false);
            }
            if (_minus != dst._minus)
            {
                return(false);
            }
            if (_withParens != dst._withParens)
            {
                return(false);
            }
            if (!RefCompare.CompareMany(_term, dst._term, _expr, dst._expr))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
예제 #6
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteBinaryExpression dst = obj as SQLiteBinaryExpression;

            if (dst == null)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_left, dst._left, _right, dst._right))
            {
                return(false);
            }

            if (this._op != dst._op)
            {
                return(false);
            }

            return(base.Equals(obj));
        }
예제 #7
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteFromTable dst = obj as SQLiteFromTable;

            if (dst == null)
            {
                return(false);
            }

            if (_asName != dst._asName)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_table, dst._table, _itable, dst._itable, _indexed, dst._indexed,
                                        _onExpr, dst._onExpr))
            {
                return(false);
            }
            if (!RefCompare.CompareList <string>(_usingOpt, dst._usingOpt))
            {
                return(false);
            }

            return(true);
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteInsertStatement dst = obj as SQLiteInsertStatement;

            if (dst == null)
            {
                return(false);
            }

            if (_table != dst._table)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_prefix, dst._prefix, _select, dst._select))
            {
                return(false);
            }
            if (!RefCompare.CompareList <string>(_columns, dst._columns))
            {
                return(false);
            }
            if (!RefCompare.CompareList <SQLiteExpression>(_values, dst._values))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteCaseExpression dst = obj as SQLiteCaseExpression;

            if (dst == null)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_caseOperand, dst._caseOperand, _caseElse, dst._caseElse))
            {
                return(false);
            }
            if (!RefCompare.CompareList <SQLiteCaseItem>(_caseItems, dst._caseItems))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteBetweenExpression dst = obj as SQLiteBetweenExpression;

            if (dst == null)
            {
                return(false);
            }

            if (this._between != dst._between)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_left, dst._left, _right, dst._right, _and, dst._and))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteCastExpression dst = obj as SQLiteCastExpression;

            if (dst == null)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_expr, dst._expr, _type, dst._type))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteCheckTableConstraint dst = obj as SQLiteCheckTableConstraint;

            if (dst == null)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_expr, dst._expr, _conf, dst._conf))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteFromInternalTable dst = obj as SQLiteFromInternalTable;

            if (dst == null)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_select, dst._select, _from, dst._from))
            {
                return(false);
            }

            return(true);
        }
예제 #14
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteLikeExpression dst = obj as SQLiteLikeExpression;

            if (dst == null)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_likeOp, dst._likeOp, _left, dst._left, _right, dst._right, _escape, dst._escape))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
예제 #15
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteCaseItem dst = obj as SQLiteCaseItem;

            if (dst == null)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_when, dst._when, _then, dst._then))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteSingleSelectStatement dst = obj as SQLiteSingleSelectStatement;

            if (dst == null)
            {
                return(false);
            }

            if (_distinct != dst._distinct)
            {
                return(false);
            }

            if (!RefCompare.CompareMany(_from, dst._from, _whereExpr, dst._whereExpr, _having, dst._having,
                                        _limit, dst._limit))
            {
                return(false);
            }
            if (!RefCompare.CompareList <SQLiteSelectColumn>(_columns, dst._columns))
            {
                return(false);
            }
            if (!RefCompare.CompareList <SQLiteExpression>(_groupBy, dst._groupBy))
            {
                return(false);
            }
            if (!RefCompare.CompareList <SQLiteSortItem>(_orderBy, dst._orderBy))
            {
                return(false);
            }

            return(base.Equals(obj));
        }