public virtual RelationalCommandListBuilder EndCommand() { if (_commandBuilder.Length != 0) { _commands.Add(_commandBuilder.BuildRelationalCommand()); _commandBuilder = _commandBuilderFactory.Create(); } return(this); }
public virtual RelationalCommand GenerateSql(IDictionary <string, object> parameterValues) { Check.NotNull(parameterValues, nameof(parameterValues)); _sql = _commandBuilderFactory.Create(); _parameterNameGenerator = _parameterNameGeneratorFactory.Create(); _parameterValues = parameterValues; Visit(SelectExpression); return(_sql.BuildRelationalCommand()); }