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