Esempio n. 1
0
        public override bool EqualTo(SqlCommandClause clause, SqlEqualityTestProps props)
        {
            var o = clause as SqlConditionClause;

            if (o == null)
            {
                return(false);
            }
            if (o.GetType() != GetType())
            {
                return(false);
            }
            return(Condition.FlatEqualTo(o.Condition, props));
        }
Esempio n. 2
0
        public override bool EqualTo(SqlCommandClause clause, SqlEqualityTestProps props)
        {
            var o = clause as SqlColumnListClause;

            if (o == null)
            {
                return(false);
            }
            if (o.GetType() != GetType())
            {
                return(false);
            }
            return(Items.EqualTo(o.Items, props));
        }
Esempio n. 3
0
        public override bool EqualTo(SqlCommandClause clause, SqlEqualityTestProps props)
        {
            var c = clause as SqlFromClause;

            if (c == null)
            {
                return(false);
            }
            List <SqlJoinRef> myl = new List <SqlJoinRef>(), otherl = new List <SqlJoinRef>();

            Source.GetFlatList(myl);
            c.Source.GetFlatList(otherl);
            return(myl.EqualSequence(otherl, (a, b) => a.EqualTo(b, props)));
        }
Esempio n. 4
0
        public SqlSelect ParseSelect()
        {
            SymbolPosition          selectpos = SkipKeyword("select");
            var                     resflds   = ParseResultFields();
            List <SqlCommandClause> clauses   = new List <SqlCommandClause>();

            for (; ;)
            {
                SqlCommandClause clause = ParseSelectClause();
                if (clause == null)
                {
                    break;
                }
                clauses.Add(clause);
            }
            return(new SqlSelect(selectpos, resflds, clauses));
        }
Esempio n. 5
0
 public abstract bool EqualTo(SqlCommandClause clause, SqlEqualityTestProps props);