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); }
public TaggedString Replace(string oldValue, string newValue) { return(new TaggedString(RawText.Replace(oldValue, newValue))); }