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));
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteDeleteStatement dst = obj as SQLiteDeleteStatement;

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

            if (_table != dst._table)
            {
                return(false);
            }
            if (!RefCompare.Compare(_whereExpr, dst._whereExpr))
            {
                return(false);
            }

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

            SQLiteColumnStatement dst = obj as SQLiteColumnStatement;

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

            if (!RefCompare.Compare(_type, dst._type))
            {
                return(false);
            }
            if (!RefCompare.CompareList <SQLiteColumnConstraint>(_conslist, dst._conslist))
            {
                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));
        }
Ejemplo n.º 6
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);
            }

            SQLiteLimitClause dst = obj as SQLiteLimitClause;

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

            if (!RefCompare.Compare(_limit, dst._limit))
            {
                return(false);
            }
            if (!RefCompare.Compare(_offset, dst._offset))
            {
                return(false);
            }

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

            SQLiteCreateTableStatement dst = obj as SQLiteCreateTableStatement;

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

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

            if (!RefCompare.CompareList <SQLiteColumnStatement>(_columns, dst._columns))
            {
                return(false);
            }
            if (!RefCompare.CompareList <SQLiteTableConstraint>(_constraints, dst._constraints))
            {
                return(false);
            }

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

            SQLiteUnaryExpression dst = obj as SQLiteUnaryExpression;

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

            if (!RefCompare.Compare(_expr, dst._expr))
            {
                return(false);
            }
            if (_op != dst._op)
            {
                return(false);
            }

            return(base.Equals(obj));
        }
Ejemplo n.º 10
0
        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);
            }

            SQLitePrimaryKeyTableConstraint dst = obj as SQLitePrimaryKeyTableConstraint;

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

            if (this._autoincrement != dst._autoincrement)
            {
                return(false);
            }
            if (this._conf != dst._conf)
            {
                return(false);
            }
            if (!RefCompare.CompareList <SQLiteIndexedColumn>(_columns, dst._columns))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
Ejemplo n.º 12
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteReferencesColumnConstraint dst = obj as SQLiteReferencesColumnConstraint;

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

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

            if (!RefCompare.CompareList <SQLiteIndexedColumn>(_columns, dst._columns))
            {
                return(false);
            }
            if (!RefCompare.CompareList <SQLiteReferenceHandler>(_handlers, dst._handlers))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
Ejemplo n.º 13
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);
            }

            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));
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteCreateViewStatement dst = obj as SQLiteCreateViewStatement;

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

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

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

            return(base.Equals(obj));
        }
Ejemplo n.º 16
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteFunctionExpression dst = obj as SQLiteFunctionExpression;

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

            if (_id != dst._id || _distinct != dst._distinct)
            {
                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);
            }

            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));
        }
Ejemplo n.º 18
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteUpdateItem dst = obj as SQLiteUpdateItem;

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

            if (_colname != dst._colname)
            {
                return(false);
            }
            if (!RefCompare.Compare(_expr, dst._expr))
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 19
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteCollateExpression dst = obj as SQLiteCollateExpression;

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

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

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

            return(base.Equals(obj));
        }
Ejemplo n.º 20
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));
        }
Ejemplo n.º 21
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteCreateIndexStatement dst = obj as SQLiteCreateIndexStatement;

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

            if (_isUnique != dst._isUnique ||
                _ifNotExists != dst._ifNotExists ||
                _onTable != dst._onTable)
            {
                return(false);
            }

            if (!RefCompare.CompareList <SQLiteIndexedColumn>(_columns, dst._columns))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
Ejemplo n.º 22
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));
        }
Ejemplo n.º 23
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteSortItem dst = obj as SQLiteSortItem;

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

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

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

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

            SQLiteUpdateStatement dst = obj as SQLiteUpdateStatement;

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

            if (_conf != dst._conf || _table != dst._table)
            {
                return(false);
            }
            if (!RefCompare.Compare(_whereExpr, dst._whereExpr))
            {
                return(false);
            }
            if (!RefCompare.CompareList <SQLiteUpdateItem>(_setlist, dst._setlist))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
Ejemplo n.º 25
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteDdlStatement dst = obj as SQLiteDdlStatement;

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

            return(RefCompare.Compare(_objectName, dst._objectName));
        }
Ejemplo n.º 26
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));
        }
Ejemplo n.º 27
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteSelectExpression dst = obj as SQLiteSelectExpression;

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

            if (!RefCompare.Compare(_select, dst._select))
            {
                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);
        }
        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));
        }