public ScalarSelectStatementExpression(SingleExprSelectStatement selectStatement) { if (selectStatement == null) { throw new ArgumentNullException("selectStatement"); } this.Statement = selectStatement; }
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); }
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)); }
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))); }
public static Predicate IsIn( this Expression expression, SingleExprSelectStatement singleExpressionSelectStatement) { return(new InSingleExprSelectStatementPredicate(expression, singleExpressionSelectStatement)); }