ข้ามไปยังเนื้อหา

Class DatabaseRoleDescriptor

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll

Describes one logical database role resolved for the active Cephalon runtime.

public sealed class DatabaseRoleDescriptor

objectDatabaseRoleDescriptor

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

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)

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.

Gets the logical roles that resolve to the same concrete role target.

public IReadOnlyList<string> CoLocatedRoles { get; }

IReadOnlyList<string>

Gets the effective connection mode.

public string? ConnectionMode { get; }

string?

Gets the effective named connection-string reference, when used.

public string? ConnectionStringName { get; }

string?

Gets the logical engine features that explicitly target this role.

public IReadOnlyList<string> Consumers { get; }

IReadOnlyList<string>

Gets the human-readable database-role description.

public string Description { get; }

string

Gets the operator-facing database-role name.

public string DisplayName { get; }

string

Gets the operator-facing health description reported for the database role, when available.

public string? HealthDescription { get; }

string?

Gets the current runtime health state reported for the database role, when available.

public HealthState? HealthState { get; }

HealthState?

Gets the stable logical database-role identifier.

public string Id { get; }

string

Gets optional operator-facing metadata associated with the database role.

public IReadOnlyDictionary<string, string> Metadata { get; }

IReadOnlyDictionary<string, string>

Gets the operator-facing migration description reported for the database role, when available.

public string? MigrationDescription { get; }

string?

Gets the current migration execution state reported for the database role, when available.

public string? MigrationState { get; }

string?

Gets the UTC timestamp when runtime state was last observed for the database role, when available.

public DateTimeOffset? ObservedAtUtc { get; }

DateTimeOffset?

Gets the logical roles that share the same physical database target.

public IReadOnlyList<string> PhysicalCoLocatedRoles { get; }

IReadOnlyList<string>

Gets the operator-facing description of the physical target that backs this role.

public string? PhysicalTargetDisplayName { get; }

string?

Gets the stable physical-target identifier used to group logical roles that share one physical database target.

public string? PhysicalTargetId { get; }

string?

Gets the stable probe-freshness answer reported for the database role, when available.

public DatabaseRoleProbeDescriptor? Probe { get; }

DatabaseRoleProbeDescriptor?

Gets the logical provider identifier that backs the effective target.

public string Provider { get; }

string

Gets the logical roles that explicitly reference this role through UseRole.

public IReadOnlyList<string> ReferencedByRoles { get; }

IReadOnlyList<string>

Gets the logical role requested by configuration or runtime selection.

public string RequestedRoleId { get; }

string

Gets the runtime resolution mode.

public string ResolutionMode { get; }

string

Gets the concrete role that ultimately backs the physical target.

public string ResolvedRoleId { get; }

string

Gets the effective runtime tuning resolved for this database role.

public DatabaseRuntimeSelection Runtime { get; }

DatabaseRuntimeSelection

Gets optional runtime metadata associated with the database role.

public IReadOnlyDictionary<string, string> RuntimeMetadata { get; }

IReadOnlyDictionary<string, string>

Gets the effective schema override, when configured.

public string? Schema { get; }

string?

Gets the referenced role supplied through UseRole, when present.

public string? UseRole { get; }

string?

Gets a value indicating whether this role resolves through UseRole.

public bool UsesRoleReference { get; }

bool