Struct ForJsonClause
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
ModeForJsonModeWhether the output is shaped by the projection aliases (
PATH) or the table structure (AUTO).RootstringAn optional
ROOT('name')wrapper around the JSON document.IncludeNullValuesboolWhether 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
Mode
Whether the output is shaped by the projection aliases (PATH) or the table structure (AUTO).
public ForJsonMode Mode { get; init; }
Property Value
Root
An optional ROOT('name') wrapper around the JSON document.
public string? Root { get; init; }