예제 #1
0
        public string Build(IEntityCommandBuilder commandBuilder)
        {
            var parameterName = commandBuilder.AddExpressionValue(simpleExpression.Value);

            return(string.Format(
                       simpleExpression.GetCommandTemplate(),
                       simpleExpression.GetPropertyName(),
                       parameterName));
        }
        public FormattableString Build(IDapperCommandBuilder commandBuilder)
        {
            string       commandTemplate = simpleExpression.GetCommandTemplate();
            IFormattable columnName      = Sql.Column(simpleExpression.GetPropertyName());
            string       parameterName   = commandBuilder.AddExpressionValue(simpleExpression.Value);

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