Table of Contents

Struct ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param

Namespace
Open.Database.Extensions
Assembly
Open.Database.Extensions.Core.dll

A parameter to be created on the database command each time the expressive command executes. TDbType accommodates the difference between DbType and provider-specific enums such as SqlDbType.

public readonly record struct ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param : IEquatable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>
Implements
IEquatable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>
Inherited Members

Remarks

For Input and InputOutput parameters, a null value is stored as Value so the parameter is sent as a database null. For output and return-value parameters the value is stored as given.

Constructors

Param(string, object?, TDbType?, ParameterDirection)

Constructs a ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param.

Properties

Direction

Gets the direction of the parameter.

Name

Gets the name of the parameter.

Type

Gets the database type of the parameter, or null if the provider is to infer it from the value.

Value

Gets the value of the parameter. Input and input/output parameters hold Value instead of null.