Exemplo n.º 1
0
        public override bool ToCommand(IDaoProvider provider, SqlCommandBuilder builder, ISqlParameters parameters)
        {
            string sqlName = provider.EscapeParam(ParamName);

            builder.AppendCommandText(RawText.Replace(ParamName, sqlName));
            builder.AddCommandParameter(sqlName, parameters.Resolve(ParamName));

            return(true);
        }
Exemplo n.º 2
0
 public TaggedString Replace(string oldValue, string newValue)
 {
     return(new TaggedString(RawText.Replace(oldValue, newValue)));
 }