Example #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));
        }
Example #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));
        }
Example #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)));
        }
Example #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));
        }
Example #5
0
 public abstract bool EqualTo(SqlCommandClause clause, SqlEqualityTestProps props);