Table of Contents

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

name string

The name of the parameter.

type TDbType

The 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

name is null.

ArgumentException

name is empty or white space.

AddReturnParam(string)

Adds a return parameter to the params list.

public TThis AddReturnParam(string name)

Parameters

name string

The 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

name is null.

ArgumentException

name is empty or white space.