Table of Contents

Struct ForJsonClause

Namespace
NextORM.Core
Assembly
nextorm.core.dll

The trailing FOR JSON clause of a statement (SQL Server): the output mode plus the optional ROOT wrapper name and the INCLUDE_NULL_VALUES flag.

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

Constructors

ForJsonClause(ForJsonMode, string?, bool)

The trailing FOR JSON clause of a statement (SQL Server): the output mode plus the optional ROOT wrapper name and the INCLUDE_NULL_VALUES flag.

public ForJsonClause(ForJsonMode Mode, string? Root = null, bool IncludeNullValues = false)

Parameters

Mode ForJsonMode

Whether the output is shaped by the projection aliases (PATH) or the table structure (AUTO).

Root string

An optional ROOT('name') wrapper around the JSON document.

IncludeNullValues bool

Whether null-valued properties are emitted (INCLUDE_NULL_VALUES).

Properties

IncludeNullValues

Whether null-valued properties are emitted (INCLUDE_NULL_VALUES).

public bool IncludeNullValues { get; init; }

Property Value

bool

Mode

Whether the output is shaped by the projection aliases (PATH) or the table structure (AUTO).

public ForJsonMode Mode { get; init; }

Property Value

ForJsonMode

Root

An optional ROOT('name') wrapper around the JSON document.

public string? Root { get; init; }

Property Value

string