Method AddReturnParam
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
AddReturnParam(string, TDbType)
Adds a return parameter to the params list.
public TThis AddReturnParam(string name, TDbType type)
Parameters
namestringThe name of the parameter.
typeTDbTypeThe database type of the parameter.
Returns
- TThis
This instance for use in method chaining.
Remarks
A null value passed to an overload
whose argument has a static type
(a nullable value type, or a string)
is sent with the database type of that type,
the same choice AddParams makes for a NULL member.
A type you pass always wins.
The object overloads have no type to use,
and neither does a call that gives the direction by position
(AddParam(name, value, ParameterDirection.Input)):
pass a database type, or name the direction
(direction: ...).
Exceptions
- ArgumentNullException
nameis null.- ArgumentException
nameis empty or white space.
AddReturnParam(string)
Adds a return parameter to the params list.
public TThis AddReturnParam(string name)
Parameters
namestringThe name of the parameter.
Returns
- TThis
This instance for use in method chaining.
Remarks
A null value passed to an overload
whose argument has a static type
(a nullable value type, or a string)
is sent with the database type of that type,
the same choice AddParams makes for a NULL member.
A type you pass always wins.
The object overloads have no type to use,
and neither does a call that gives the direction by position
(AddParam(name, value, ParameterDirection.Input)):
pass a database type, or name the direction
(direction: ...).
Exceptions
- ArgumentNullException
nameis null.- ArgumentException
nameis empty or white space.