Drizin / InterpolatedSql

Sql Builder using Interpolated Strings
MIT License
106 stars 7 forks source link

QueryBuilder.Build support for multiple extension replacements #14

Closed terryaney closed 6 months ago

terryaney commented 6 months ago

Added support (was a bit of a refactor) to allow for keywords (i.e. /filters/, {filters}, etc.) to have multiple occurrences and have all of them replaced. Especially useful when having multiple query sets.

Note: I wrote a test (QueryBuilderTests.TestMultipleFilterExtensions) but I'm not sure if this is location you wanted. But I didn't have all the different databases installed, therefore I couldn't run all tests from InterpolatedSql.Dapper.Tests that seemed to focus on the 'extension' testing. You may want to do that before accepting.

Drizin commented 6 months ago

Thanks, looks good! I've just made some minor adjustments, mostly to keep net462 compatibility.