Пример #1
0
        public TopClause(int rowCountLimit, ICommandParameterFactory commandParameterFactory)
        {
            _rowCountLimit = rowCountLimit;

            var parameter = commandParameterFactory.Create("RowCountLimit", _rowCountLimit);

            CommandParameters.Add(parameter);
        }
Пример #2
0
            private TSqlExpression(QueryExpression expression, ICommandParameterFactory commandParameterFactory, string tableName)
            {
                _commandParameterFactory = commandParameterFactory;
                _tableName        = tableName;
                CommandParameters = new List <CommandParameter>();

                expression.Accept(this);
            }
Пример #3
0
        public TopClause(int rowCountLimit, ICommandParameterFactory commandParameterFactory)
        {
            _rowCountLimit = rowCountLimit;

            var parameter = commandParameterFactory.Create("RowCountLimit", _rowCountLimit);

            CommandParameters.Add(parameter);
        }
Пример #4
0
 public static TSqlExpression Create(QueryExpression queryExpression, ICommandParameterFactory commandParameterFactory, string columnNamePrefix)
 {
     return(new TSqlExpression(queryExpression, commandParameterFactory, columnNamePrefix));
 }