public ScalarSelectStatementExpression(SingleExprSelectStatement selectStatement)
 {
     if (selectStatement == null) {
         throw new ArgumentNullException("selectStatement");
     }
     this.Statement = selectStatement;
 }
 public ScalarSelectStatementExpression(SingleExprSelectStatement selectStatement)
 {
     if (selectStatement == null)
     {
         throw new ArgumentNullException("selectStatement");
     }
     this.Statement = selectStatement;
 }
Beispiel #3
0
        public SelectTopPercent <SingleExprSelectStatement> SelectTopPercent(Expression percent, Expression expression)
        {
            var statement = new SingleExprSelectStatement(this);
            var clause    = new SelectTopPercent <SingleExprSelectStatement>(statement, percent, new[] { expression });

            statement.FirstFragment = clause;
            return(clause);
        }
Beispiel #4
0
 public static Predicate IsNotIn(this Expression expression, SingleExprSelectStatement selectStatement)
 {
     if (expression == null)
     {
         throw new ArgumentNullException("expression");
     }
     if (selectStatement == null)
     {
         throw new ArgumentNullException("selectStatement");
     }
     return(new NotInSingleExprSelectStatementPredicate(expression, selectStatement));
 }
Beispiel #5
0
        public Assignment Assign(SingleExprSelectStatement selectStatement)
        {
            if (selectStatement == null)
            {
                string message =
                    string.Format(
                        "Cannot assign null select statement expression on table [{0}], column [{1}]",
                        this.Table.TableName,
                        this.ColumnName);
                throw new ArgumentNullException("selectStatement", message);
            }

            return(new ExpressionAssign(this, new ScalarSelectStatementExpression(selectStatement)));
        }
Beispiel #6
0
 public static Predicate IsIn(
     this Expression expression,
     SingleExprSelectStatement singleExpressionSelectStatement)
 {
     return(new InSingleExprSelectStatementPredicate(expression, singleExpressionSelectStatement));
 }