A C# library to easily build parameterized SQL queries
- Building parameterized queries
- Lambda expressions
- Custom column/table name mapping
- Custom function mapping
- Executing queries, use plain
IDbCommand.Execute*
methods or something else. - Object mapping. Use something like Dapper
LambdaQueryBuilder builder = new LambdaQueryBuilder();
IClause clause = builder
.Select<Product>(product => product.Name)
.From<Product>()
.OrderByDesc<Product>(product => product.Name)
.Build();
Produces
select Name from Product order by Name desc
More use cases can be found in UnitTest project