Interface IFluentSqlBuilder
- Assembly
- Dapper.SimpleSqlBuilder.dll
An interface that defines the fluent SQL builder type.
public interface IFluentSqlBuilder : ISqlBuilder, IFluentBuilder
Implements
Methods
AddParameter(string, object?, DbType?, ParameterDirection?, int?, byte?, byte?)
Adds a parameter to the dynamic parameters list.
void AddParameter(string name, object? value = null, DbType? dbType = null, ParameterDirection? direction = null, int? size = null, byte? precision = null, byte? scale = null)
Parameters
name
string-
The name of the parameter.
value
object?-
The value of the parameter.
dbType
DbType?-
The DbType of the parameter.
direction
ParameterDirection?-
The in or out ParameterDirection of the parameter.
size
int?-
The size of the parameter.
precision
byte?-
The precision of the parameter.
scale
byte?-
The scale of the parameter.
GetValue<T>(string)
Gets the value of a parameter.
T GetValue<T>(string parameterName)
Parameters
parameterName
string-
The name of the parameter.
Returns
- T
-
The value of the parameter. Note DBNull.Value is not returned, instead the value is returned as null.
Type Parameters
T
-
The type to cast the value to.