コード例 #1
0
        public virtual RelationalCommandListBuilder EndCommand()
        {
            if (_commandBuilder.GetLength() != 0)
            {
                _commands.Add(_commandBuilder.BuildRelationalCommand());
                _commandBuilder = _commandBuilderFactory.Create();
            }

            return(this);
        }
コード例 #2
0
        public virtual IRelationalCommand GenerateSql(IDictionary <string, object> parameterValues)
        {
            Check.NotNull(parameterValues, nameof(parameterValues));

            _sql = _commandBuilderFactory.Create();
            _parameterNameGenerator = _parameterNameGeneratorFactory.Create();
            _parameterValues        = parameterValues;

            Visit(SelectExpression);

            return(_sql.BuildRelationalCommand());
        }