Class JsonStreamOptions
Shape options for the JSON streaming terminals (QueryCommand.WriteJson /
EntityBuilder.WriteJsonAsync). The options are validated when the shape plan is built.
public sealed class JsonStreamOptions
- Inheritance
-
JsonStreamOptions
- Inherited Members
- Extension Methods
Properties
IgnoreNull
When true, object properties whose value is SQL NULL are omitted.
public bool IgnoreNull { get; init; }
Property Value
Mode
The container shape. Defaults to Array.
public JsonStreamMode Mode { get; init; }
Property Value
PropertyNamingPolicy
The policy applied to the projected property names, or null to keep them as-is.
public JsonNamingPolicy? PropertyNamingPolicy { get; init; }
Property Value
Root
The property name of the wrapper object around an Array document
({"root":[...]}), or null for a bare array. Not allowed in
NdJson.
public string? Root { get; init; }
Property Value
WriteIndented
public bool WriteIndented { get; init; }