Table of Contents

Class SqlServerConnectionValue

Namespace
ItTiger.TigerQuery.Core
Assembly
ItTiger.TigerQuery.Core.dll
A persisted connection value represented either by a legacy-compatible literal JSON string or by an explicit external-value reference object.
[JsonConverter(typeof(SqlServerConnectionValueJsonConverter))]
public sealed class SqlServerConnectionValue
Inheritance
SqlServerConnectionValue
Inherited Members

Properties

IsReference

Gets whether this value is resolved externally.
public bool IsReference { get; }

Property Value

bool

LiteralValue

Gets the literal value, or null when this is a reference.
public string? LiteralValue { get; }

Property Value

string

Reference

Gets the external reference, or null when this is a literal.
public SqlServerExternalValueReference? Reference { get; }

Property Value

SqlServerExternalValueReference

Methods

Describe(bool)

Returns a safe display value without resolving external input.
public string Describe(bool sensitive = false)

Parameters

sensitive bool

Returns

string

External(SqlServerExternalValueReference)

Creates an external value that persists as an explicit reference object.
public static SqlServerConnectionValue External(SqlServerExternalValueReference reference)

Parameters

reference SqlServerExternalValueReference

Returns

SqlServerConnectionValue

Literal(string)

Creates a literal value that persists as a plain JSON string.
public static SqlServerConnectionValue Literal(string value)

Parameters

value string

Returns

SqlServerConnectionValue