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
LiteralValue
Gets the literal value, or null when this is a reference.
public string? LiteralValue { get; }
Property Value
Reference
Gets the external reference, or null when this is a literal.
public SqlServerExternalValueReference? Reference { get; }
Property Value
Methods
Describe(bool)
Returns a safe display value without resolving external input.
public string Describe(bool sensitive = false)
Parameters
sensitivebool
Returns
External(SqlServerExternalValueReference)
Creates an external value that persists as an explicit reference object.
public static SqlServerConnectionValue External(SqlServerExternalValueReference reference)
Parameters
referenceSqlServerExternalValueReference
Returns
Literal(string)
Creates a literal value that persists as a plain JSON string.
public static SqlServerConnectionValue Literal(string value)
Parameters
valuestring