Table of Contents

Struct PreparedCommandOptions

Namespace
NextORM.Core
Assembly
nextorm.core.dll

The non-generic setup of a DbPreparedQueryCommand<TResult>. The mapping delegate is not part of this value because it is generic in the result type.

public readonly record struct PreparedCommandOptions : IEquatable<PreparedCommandOptions>
Implements
Inherited Members
Extension Methods

Constructors

PreparedCommandOptions(bool, string?, bool, bool)

The non-generic setup of a DbPreparedQueryCommand<TResult>. The mapping delegate is not part of this value because it is generic in the result type.

public PreparedCommandOptions(bool SingleRow = false, string? Sql = null, bool NoParams = false, bool NeedsParamRefresh = false)

Parameters

SingleRow bool

Whether the command returns at most one row.

Sql string

The statement text when the command overrides the generated SQL, otherwise null.

NoParams bool

Whether the command has no parameters at all.

NeedsParamRefresh bool

Whether parameter values must be refreshed before each execution.

Properties

Cache

The command-reuse policy this prepared command was built with. It is carried as preparation input only and is never read back from a shared query command.

public PreparedCommandCache Cache { get; init; }

Property Value

PreparedCommandCache

NeedsParamRefresh

Whether parameter values must be refreshed before each execution.

public bool NeedsParamRefresh { get; init; }

Property Value

bool

NoParams

Whether the command has no parameters at all.

public bool NoParams { get; init; }

Property Value

bool

SequentialAccess

Whether the reader must be opened with SequentialAccess for streaming LOB columns.

public bool SequentialAccess { get; init; }

Property Value

bool

SingleRow

Whether the command returns at most one row.

public bool SingleRow { get; init; }

Property Value

bool

Sql

The statement text when the command overrides the generated SQL, otherwise null.

public string? Sql { get; init; }

Property Value

string