Exemplo n.º 1
0
        public override bool Visit(SqlIdentifierPathExpression first, SqlObject secondAsObject)
        {
            if (!(secondAsObject is SqlIdentifierPathExpression second))
            {
                return(false);
            }

            if (!first.Value.Accept(this, second.Value))
            {
                return(false);
            }

            if (!SqlObjectEqualityVisitor.Equals(first.ParentPath, second.ParentPath))
            {
                return(false);
            }

            return(true);
        }
Exemplo n.º 2
0
        public override bool Visit(SqlInputPathCollection first, SqlObject secondAsObject)
        {
            if (!(secondAsObject is SqlInputPathCollection second))
            {
                return(false);
            }

            if (!first.Input.Accept(this, second.Input))
            {
                return(false);
            }

            if (!SqlObjectEqualityVisitor.Equals(first.RelativePath, second.RelativePath))
            {
                return(false);
            }

            return(true);
        }
Exemplo n.º 3
0
        public override bool Visit(SqlAliasedCollectionExpression first, SqlObject secondAsObject)
        {
            if (!(secondAsObject is SqlAliasedCollectionExpression second))
            {
                return(false);
            }

            if (!SqlObjectEqualityVisitor.Equals(first.Alias, second.Alias))
            {
                return(false);
            }

            if (!first.Collection.Accept(this, second.Collection))
            {
                return(false);
            }

            return(true);
        }