Class SimpleParameterInfoExtensions
- Namespace
- Dapper.SimpleSqlBuilder.Extensions
- Assembly
- Dapper.SimpleSqlBuilder.dll
An extension class for SimpleParameterInfo.
public static class SimpleParameterInfoExtensionsInheritance
Methods
DefineParam<T>(T, DbType?, int?, byte?, byte?)
An extension method to create an instance of ISimpleParameterInfo with the specified dbType, size, precision, and scale.
public static ISimpleParameterInfo DefineParam<T>(this T value, DbType? dbType = null, int? size = null, byte? precision = null, byte? scale = null)Parameters
valueT-
The parameter value.
dbTypeDbType?-
The parameter DbType.
sizeint?-
The parameter size.
precisionbyte?-
The parameter precision.
scalebyte?-
The parameter scale.
Returns
- ISimpleParameterInfo
-
An new instance of ISimpleParameterInfo.
Type Parameters
T-
The type of the parameter.
Exceptions
- ArgumentException
-
Thrown when called on ISimpleParameterInfo.