Constructor Param
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
Param(string, object?, TDbType?, ParameterDirection)
public Param(string name, object? value, TDbType? type = null, ParameterDirection direction = ParameterDirection.Input)
Parameters
namestringThe name of the parameter. Cannot be null, empty, or white space.
valueobjectThe value of the parameter. A null input value is converted to Value.
typeTDbType?The optional database type of the parameter. When null, the provider infers it from the value.
directionParameterDirectionThe direction of the parameter.
Exceptions
- ArgumentNullException
nameis null.- ArgumentException
nameis empty or white space.