public string Build(IEntityCommandBuilder commandBuilder)
        {
            var parameterName = commandBuilder.AddExpressionValue(inExpression.Values);

            return(string.Format(
                       inExpression.GetCommandTemplate(),
                       parameterName,
                       inExpression.GetPropertyName()));
        }
예제 #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));
        }