Class DatabaseRoleDescriptor
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll
Describes one logical database role resolved for the active Cephalon runtime.
public sealed class DatabaseRoleDescriptorInheritance
Section titled “Inheritance”object ← DatabaseRoleDescriptor
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”DatabaseRoleDescriptor(string, string, string, string, string, string, string, DatabaseRuntimeSelection?, bool, string?, string?, string?, string?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, string?, string?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?, HealthState?, string?, string?, string?, DateTimeOffset?, DatabaseRoleProbeDescriptor?, IReadOnlyDictionary<string, string>?)
Section titled “ DatabaseRoleDescriptor(string, string, string, string, string, string, string, DatabaseRuntimeSelection?, bool, string?, string?, string?, string?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, string?, string?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?, HealthState?, string?, string?, string?, DateTimeOffset?, DatabaseRoleProbeDescriptor?, IReadOnlyDictionary<string, string>?)”Creates a new database-role descriptor.
public DatabaseRoleDescriptor(string id, string displayName, string description, string provider, string requestedRoleId, string resolvedRoleId, string resolutionMode, DatabaseRuntimeSelection? runtime = null, bool usesRoleReference = false, string? useRole = null, string? connectionMode = null, string? connectionStringName = null, string? schema = null, IReadOnlyList<string>? consumers = null, IReadOnlyList<string>? referencedByRoles = null, IReadOnlyList<string>? coLocatedRoles = null, string? physicalTargetId = null, string? physicalTargetDisplayName = null, IReadOnlyList<string>? physicalCoLocatedRoles = null, IReadOnlyDictionary<string, string>? metadata = null, HealthState? healthState = null, string? healthDescription = null, string? migrationState = null, string? migrationDescription = null, DateTimeOffset? observedAtUtc = null, DatabaseRoleProbeDescriptor? probe = null, IReadOnlyDictionary<string, string>? runtimeMetadata = null)Parameters
Section titled “Parameters”id string
The stable logical database-role identifier.
displayName string
The operator-facing database-role name.
description string
The human-readable database-role description.
provider string
The logical provider identifier that backs the effective target.
requestedRoleId string
The logical role that was requested by configuration or runtime selection.
resolvedRoleId string
The concrete role that ultimately backs the physical target.
resolutionMode string
The runtime resolution mode such as direct or role-reference.
runtime DatabaseRuntimeSelection?
The effective runtime tuning resolved for this database role.
usesRoleReference bool
Whether the logical role resolves through UseRole.
useRole string?
The referenced role supplied through UseRole, when present.
connectionMode string?
The effective connection mode such as named or inline.
connectionStringName string?
The effective named connection-string reference, when used.
schema string?
The effective schema override, when configured.
consumers IReadOnlyList<string>?
The logical engine features that explicitly target this role.
referencedByRoles IReadOnlyList<string>?
Other logical roles that explicitly reference this role through UseRole.
coLocatedRoles IReadOnlyList<string>?
Other logical roles that resolve to the same concrete role target.
physicalTargetId string?
The stable physical-target identifier used to group logical roles that share one physical database target.
physicalTargetDisplayName string?
The operator-facing description of the physical target that backs this role.
physicalCoLocatedRoles IReadOnlyList<string>?
Other logical roles that share the same physical database target.
metadata IReadOnlyDictionary<string, string>?
Optional operator-facing metadata associated with the database role.
healthState HealthState?
The current runtime health state reported for the database role, when available.
healthDescription string?
The operator-facing health description reported for the database role, when available.
migrationState string?
The current migration execution state reported for the database role, when available.
migrationDescription string?
The operator-facing migration description reported for the database role, when available.
observedAtUtc DateTimeOffset?
The UTC timestamp when runtime state was last observed for the database role, when available.
probe DatabaseRoleProbeDescriptor?
The stable probe-freshness answer reported for the database role, when available.
runtimeMetadata IReadOnlyDictionary<string, string>?
Optional runtime metadata associated with the database role.
Properties
Section titled “Properties”CoLocatedRoles
Section titled “ CoLocatedRoles”Gets the logical roles that resolve to the same concrete role target.
public IReadOnlyList<string> CoLocatedRoles { get; }Property Value
Section titled “Property Value”ConnectionMode
Section titled “ ConnectionMode”Gets the effective connection mode.
public string? ConnectionMode { get; }Property Value
Section titled “Property Value”ConnectionStringName
Section titled “ ConnectionStringName”Gets the effective named connection-string reference, when used.
public string? ConnectionStringName { get; }Property Value
Section titled “Property Value”Consumers
Section titled “ Consumers”Gets the logical engine features that explicitly target this role.
public IReadOnlyList<string> Consumers { get; }Property Value
Section titled “Property Value”Description
Section titled “ Description”Gets the human-readable database-role description.
public string Description { get; }Property Value
Section titled “Property Value”DisplayName
Section titled “ DisplayName”Gets the operator-facing database-role name.
public string DisplayName { get; }Property Value
Section titled “Property Value”HealthDescription
Section titled “ HealthDescription”Gets the operator-facing health description reported for the database role, when available.
public string? HealthDescription { get; }Property Value
Section titled “Property Value”HealthState
Section titled “ HealthState”Gets the current runtime health state reported for the database role, when available.
public HealthState? HealthState { get; }Property Value
Section titled “Property Value”Gets the stable logical database-role identifier.
public string Id { get; }Property Value
Section titled “Property Value”Metadata
Section titled “ Metadata”Gets optional operator-facing metadata associated with the database role.
public IReadOnlyDictionary<string, string> Metadata { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
MigrationDescription
Section titled “ MigrationDescription”Gets the operator-facing migration description reported for the database role, when available.
public string? MigrationDescription { get; }Property Value
Section titled “Property Value”MigrationState
Section titled “ MigrationState”Gets the current migration execution state reported for the database role, when available.
public string? MigrationState { get; }Property Value
Section titled “Property Value”ObservedAtUtc
Section titled “ ObservedAtUtc”Gets the UTC timestamp when runtime state was last observed for the database role, when available.
public DateTimeOffset? ObservedAtUtc { get; }Property Value
Section titled “Property Value”PhysicalCoLocatedRoles
Section titled “ PhysicalCoLocatedRoles”Gets the logical roles that share the same physical database target.
public IReadOnlyList<string> PhysicalCoLocatedRoles { get; }Property Value
Section titled “Property Value”PhysicalTargetDisplayName
Section titled “ PhysicalTargetDisplayName”Gets the operator-facing description of the physical target that backs this role.
public string? PhysicalTargetDisplayName { get; }Property Value
Section titled “Property Value”PhysicalTargetId
Section titled “ PhysicalTargetId”Gets the stable physical-target identifier used to group logical roles that share one physical database target.
public string? PhysicalTargetId { get; }Property Value
Section titled “Property Value”Gets the stable probe-freshness answer reported for the database role, when available.
public DatabaseRoleProbeDescriptor? Probe { get; }Property Value
Section titled “Property Value”Provider
Section titled “ Provider”Gets the logical provider identifier that backs the effective target.
public string Provider { get; }Property Value
Section titled “Property Value”ReferencedByRoles
Section titled “ ReferencedByRoles”Gets the logical roles that explicitly reference this role through UseRole.
public IReadOnlyList<string> ReferencedByRoles { get; }Property Value
Section titled “Property Value”RequestedRoleId
Section titled “ RequestedRoleId”Gets the logical role requested by configuration or runtime selection.
public string RequestedRoleId { get; }Property Value
Section titled “Property Value”ResolutionMode
Section titled “ ResolutionMode”Gets the runtime resolution mode.
public string ResolutionMode { get; }Property Value
Section titled “Property Value”ResolvedRoleId
Section titled “ ResolvedRoleId”Gets the concrete role that ultimately backs the physical target.
public string ResolvedRoleId { get; }Property Value
Section titled “Property Value”Runtime
Section titled “ Runtime”Gets the effective runtime tuning resolved for this database role.
public DatabaseRuntimeSelection Runtime { get; }Property Value
Section titled “Property Value”RuntimeMetadata
Section titled “ RuntimeMetadata”Gets optional runtime metadata associated with the database role.
public IReadOnlyDictionary<string, string> RuntimeMetadata { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
Schema
Section titled “ Schema”Gets the effective schema override, when configured.
public string? Schema { get; }Property Value
Section titled “Property Value”UseRole
Section titled “ UseRole”Gets the referenced role supplied through UseRole, when present.
public string? UseRole { get; }Property Value
Section titled “Property Value”UsesRoleReference
Section titled “ UsesRoleReference”Gets a value indicating whether this role resolves through UseRole.
public bool UsesRoleReference { get; }