// Indicates whether the given query expression could safely be extended with another table operator expression of the given table operator public bool IsCompatibleWith(TableOperator tableOperator) { foreach (TableOperatorExpression tableOperatorExpression in _tableOperators) { if (tableOperatorExpression.TableOperator != tableOperator) { return(false); } } return(true); }
protected virtual string GetTableOperatorKeyword(TableOperator tableOperator) { switch (tableOperator) { case TableOperator.Union: return(Keywords.Union); case TableOperator.Intersect: return(Keywords.Intersect); case TableOperator.Difference: return(Keywords.Minus); default: throw new LanguageException(LanguageException.Codes.UnknownInstruction, tableOperator.ToString()); } }
public TableOperatorExpression(TableOperator operatorValue, bool distinct, SelectExpression selectExpression) : base() { _tableOperator = operatorValue; _distinct = distinct; _selectExpression = selectExpression; }
public TableOperatorExpression(TableOperator operatorValue, SelectExpression selectExpression) : base() { _tableOperator = operatorValue; _selectExpression = selectExpression; }