Table of Contents

Struct SqlQueryResult<TRow>

Namespace
LfrlAnvil.Sql.Statements
Assembly
LfrlAnvil.Sql.Core.dll

Represents a generic query reader result.

public readonly struct SqlQueryResult<TRow> where TRow : notnull

Type Parameters

TRow

Row type.

Inherited Members

Constructors

SqlQueryResult(SqlResultSetField[]?, List<TRow>)

Creates a new SqlQueryResult<TRow> instance.

public SqlQueryResult(SqlResultSetField[]? resultSetFields, List<TRow> rows)

Parameters

resultSetFields SqlResultSetField[]

Collection of definitions of associated fields.

rows List<TRow>

Collection of read rows.

Fields

Empty

Represents a result without any Rows.

public static readonly SqlQueryResult<TRow> Empty

Field Value

SqlQueryResult<TRow>

Properties

IsEmpty

Specifies whether or not this result contains any Rows.

public bool IsEmpty { get; }

Property Value

bool

ResultSetFields

Collection of definitions of associated fields.

public ReadOnlySpan<SqlResultSetField> ResultSetFields { get; }

Property Value

ReadOnlySpan<SqlResultSetField>

Rows

Collection of read rows.

public List<TRow>? Rows { get; }

Property Value

List<TRow>