public void Apply(CommandBuilder builder) { _left.Apply(builder); builder.Append(" % "); _right.Apply(builder); builder.Append(_op); _value.Apply(builder); }
public void apply() { var command = new NpgsqlCommand(); var builder = new CommandBuilder(command); var parameter = new CommandParameter(44); parameter.Apply(builder); var dbParameter = command.Parameters[0]; dbParameter.Value.ShouldBe(parameter.Value); dbParameter.NpgsqlDbType.ShouldBe(parameter.DbType.Value); builder.ToString().ShouldEndWith(":" + dbParameter.ParameterName); }
public void Apply(CommandBuilder builder) { builder.Append("id = "); _parameter.Apply(builder); }