Fluent Builder
The Fluent Builder
enables you to build dynamic SQL queries using fluent APIs, offering a more intuitive and readable way to construct complex SQL statements.
The CreateFluent
method on the SimpleSqlBuilder
or ISimpleBuilder
(when using dependency injection) creates a new fluent builder
instance.
Using fluent APIs, you can build SELECT
, INSERT
, UPDATE
, and DELETE
queries. The fluent builder
parses the SQL query and extracts parameters from it. These parameters can be accessed via the Parameters
property, and the generated SQL query is available through the Sql
property.