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.

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)

Initializes a new instance of the ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param struct.

Properties

Direction

Gets the direction of the parameter.

Name

Gets the name of the parameter.

Type

Gets the database type the caller gave, 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.