MicroLite-ORM / MicroLite

MicroLite ORM framework
microliteorm.wordpress.com
Apache License 2.0
85 stars 24 forks source link

Select builder adds extra parenthesis #484

Closed TrevorPilley closed 4 years ago

TrevorPilley commented 4 years ago

When calling

SqlBuilder.Select("Column1", "Column2").From("Table").Where("(Column1 = @p0)", "Foo").ToSqlQuery()

The CommandText is set to:

SELECT Column1,Column2 FROM Table WHERE ((Column1 = @p0))

it should be

SELECT Column1,Column2 FROM Table WHERE (Column1 = @p0)