Database.CreateCommand Method (SqlBuilder)
Creates and returns an IDbCommand object from the specified sqlBuilder.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public IDbCommand CreateCommand(
SqlBuilder sqlBuilder
)
Parameters
sqlBuilder
Type: DbExtensions.SqlBuilder
The SqlBuilder that provides the command’s text and parameters.
Return Value
Type: IDbCommand
A new IDbCommand object whose CommandText property is initialized with the sqlBuilder’s string representation, and whose Parameters property is initialized with the values from the ParameterValues property of the sqlBuilder parameter.