Пример #1
0
 // 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);
 }
Пример #2
0
        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());
            }
        }
Пример #3
0
 public TableOperatorExpression(TableOperator operatorValue, bool distinct, SelectExpression selectExpression) : base()
 {
     _tableOperator    = operatorValue;
     _distinct         = distinct;
     _selectExpression = selectExpression;
 }
Пример #4
0
 public TableOperatorExpression(TableOperator operatorValue, SelectExpression selectExpression) : base()
 {
     _tableOperator    = operatorValue;
     _selectExpression = selectExpression;
 }