public FormattableString Build(IDapperCommandBuilder commandBuilder)
        {
            string       commandTemplate     = betweenExpression.GetCommandTemplate();
            IFormattable columnName          = Sql.Column(betweenExpression.GetPropertyName());
            string       parameterNameStarts = commandBuilder.AddExpressionValue(betweenExpression.Starts);
            string       parameterNameEnds   = commandBuilder.AddExpressionValue(betweenExpression.Ends);

            return(FormattableStringFactory.Create(
                       commandTemplate,
                       columnName,
                       parameterNameStarts,
                       parameterNameEnds));
        }
Ejemplo n.º 2
0
        public FormattableString Build(IDapperCommandBuilder commandBuilder)
        {
            string       commandTemplate = inExpression.GetCommandTemplate();
            IFormattable columnName      = Sql.Column(inExpression.GetPropertyName());
            string       parameterName   = commandBuilder.AddExpressionValue(inExpression.Values);

            return(FormattableStringFactory.Create(
                       commandTemplate,
                       columnName,
                       parameterName));
        }