public Node ExprComp() { var node = ExprRel(); while (CurrentToken == TokenCategory.EQUALS || CurrentToken == TokenCategory.NOTEQUALS) { if (CurrentToken == TokenCategory.EQUALS) { var node_eq = new EqualTo(); node_eq.AnchorToken = Expect(TokenCategory.EQUALS); node_eq.Add(node); node_eq.Add(ExprRel()); node = node_eq; } else { var node_neq = new NotEqualTo(); node_neq.AnchorToken = Expect(TokenCategory.NOTEQUALS); node_neq.Add(node); node_neq.Add(ExprRel()); node = node_neq; } } return(node); }
public DBQuery WhereEqualTo(string column, object value) { EqualTo.Add(column, value); return(this); }