Class SimpleParameterInfo
- Namespace
- Dapper.SimpleSqlBuilder
- Assembly
- Dapper.SimpleSqlBuilder.dll
A class that defines a parameter and its properties.
public sealed class SimpleParameterInfo : ISimpleParameterInfoInheritance
Implements
Constructors
SimpleParameterInfo(object?, DbType?, int?, byte?, byte?, bool)
Initializes a new instance of the SimpleParameterInfo class.
public SimpleParameterInfo(object? value, DbType? dbType = null, int? size = null, byte? precision = null, byte? scale = null, bool reuse = true)Parameters
valueobject?-
The parameter value.
dbTypeDbType?-
The parameter DbType.
sizeint?-
The parameter size.
precisionbyte?-
The parameter precision.
scalebyte?-
The parameter scale.
reusebool-
true to reuse this parameter for every use within the builder; false to create a separate parameter for each use. The default is true.
This setting affects only this parameter. The builder's
reuseParametersoption continues to govern interpolated values.
Properties
DbType
Gets the parameter DbType.
public DbType? DbType { get; }Property Value
Precision
Gets the parameter precision.
public byte? Precision { get; }Property Value
- byte?
Scale
Gets the parameter scale.
public byte? Scale { get; }Property Value
- byte?
Size
Gets the parameter size.
public int? Size { get; }Property Value
- int?
Value
Gets the parameter value.
public object? Value { get; }