public SetVariableStatement(SqlPlaceholder <T> variable, Expression <Func <SelectorContext <T>, T> > valueExpr) { Variable = variable; ValueExpression = valueExpr; ValueFunction = valueExpr.Compile(); }
public abstract void WritePlaceholder(SqlPlaceholder placeholder, StringBuilder writer);
public abstract void WriteSetSqlVariable(SqlPlaceholder variable, SqlExpression expr, StringBuilder writer);
public void SetSqlVariable <T>(SqlPlaceholder <T> placeholder, Expression <Func <SelectorContext <T>, T> > node) { Queries.Add(new SetVariableStatement <T>(placeholder, node)); }