Table of Contents

Interface IDataParameter<TValue>

Namespace
FluentCommand
Assembly
FluentCommand.dll

An interface for data parameter.

public interface IDataParameter<TValue>

Type Parameters

TValue

The type of the parameter value.

Methods

Direction(ParameterDirection)

Sets a value that indicates whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value.

IDataParameter<TValue> Direction(ParameterDirection parameterDirection)

Parameters

parameterDirection ParameterDirection

The parameter direction.

Returns

IDataParameter<TValue>

A fluent interface to a data command parameter.

Name(string)

Sets the name of the parameter.

IDataParameter<TValue> Name(string parameterName)

Parameters

parameterName string

Name of the parameter.

Returns

IDataParameter<TValue>

A fluent interface to a data command parameter.

Output(Action<TValue>)

Sets the parameter direction to Output and registers the call back to get the value.

IDataParameter<TValue> Output(Action<TValue> callback)

Parameters

callback Action<TValue>

The callback used to get the out value.

Returns

IDataParameter<TValue>

A fluent interface to a data command parameter.

Return(Action<TValue>)

Sets the parameter direction to ReturnValue and registers the call back to get the return value.

IDataParameter<TValue> Return(Action<TValue> callback)

Parameters

callback Action<TValue>

The callback used to get the return value.

Returns

IDataParameter<TValue>

A fluent interface to a data command parameter.

Size(int)

Sets the the maximum size of the data within the parameter.

IDataParameter<TValue> Size(int size)

Parameters

size int

The maximum size of the data within the parameter.

Returns

IDataParameter<TValue>

A fluent interface to a data command parameter.

Type(DbType)

Sets the DbType of the parameter.

IDataParameter<TValue> Type(DbType dbType)

Parameters

dbType DbType

The DbType of the parameter.

Returns

IDataParameter<TValue>

A fluent interface to a data command parameter.

Value(TValue)

Sets the value of the parameter.

IDataParameter<TValue> Value(TValue value)

Parameters

value TValue

The value of the parameter.

Returns

IDataParameter<TValue>

A fluent interface to a data command parameter.