Struct PreparedCommandOptions
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
SingleRowboolWhether the command returns at most one row.
SqlstringThe statement text when the command overrides the generated SQL, otherwise
null.NoParamsboolWhether the command has no parameters at all.
NeedsParamRefreshboolWhether 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
NeedsParamRefresh
Whether parameter values must be refreshed before each execution.
public bool NeedsParamRefresh { get; init; }
Property Value
NoParams
Whether the command has no parameters at all.
public bool NoParams { get; init; }
Property Value
SequentialAccess
Whether the reader must be opened with SequentialAccess for streaming LOB columns.
public bool SequentialAccess { get; init; }
Property Value
SingleRow
Whether the command returns at most one row.
public bool SingleRow { get; init; }
Property Value
Sql
The statement text when the command overrides the generated SQL, otherwise null.
public string? Sql { get; init; }