public TopClause(int rowCountLimit, ICommandParameterFactory commandParameterFactory) { _rowCountLimit = rowCountLimit; var parameter = commandParameterFactory.Create("RowCountLimit", _rowCountLimit); CommandParameters.Add(parameter); }
private TSqlExpression(QueryExpression expression, ICommandParameterFactory commandParameterFactory, string tableName) { _commandParameterFactory = commandParameterFactory; _tableName = tableName; CommandParameters = new List <CommandParameter>(); expression.Accept(this); }
public static TSqlExpression Create(QueryExpression queryExpression, ICommandParameterFactory commandParameterFactory, string columnNamePrefix) { return(new TSqlExpression(queryExpression, commandParameterFactory, columnNamePrefix)); }