SqlBuilder._If Method
Appends format to the current clause if condition is true.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public SqlBuilder _If(
bool condition,
string format,
params Object[] args
)
Parameters
condition
Type: System.Boolean
true to append format to the current clause; otherwise, false.
format
Type: System.String
The format string that represents the body of the current clause.
args
Type: System.Object[]
The parameters of the clause body.
Return Value
Type: SqlBuilder
A reference to this instance after the append operation has completed.