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

Class DatabaseMigrationOperationalExecutionGroup

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

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

Describes one engine-owned execution group in the database-migration playbook.

public sealed class DatabaseMigrationOperationalExecutionGroup

objectDatabaseMigrationOperationalExecutionGroup

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

DatabaseMigrationOperationalExecutionGroup(int, string, string, DatabaseMigrationStatus, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, int, int, int, IReadOnlyList<DatabaseMigrationOperationalExecutionGroupCommand>?, IReadOnlyList<DatabaseMigrationOperationalExecutionGroupCommand>?, string?)

Section titled “ DatabaseMigrationOperationalExecutionGroup(int, string, string, DatabaseMigrationStatus, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, int, int, int, IReadOnlyList<DatabaseMigrationOperationalExecutionGroupCommand>?, IReadOnlyList<DatabaseMigrationOperationalExecutionGroupCommand>?, string?)”

Creates a new database-migration execution group.

public DatabaseMigrationOperationalExecutionGroup(int order, string physicalTargetId, string physicalTargetDisplayName, DatabaseMigrationStatus status, IReadOnlyList<string>? databaseMigrationIds = null, IReadOnlyList<string>? requestedRoleIds = null, IReadOnlyList<string>? resolvedRoleIds = null, int productionReadyTargetCount = 0, int manualPathTargetCount = 0, int applyOnStartupTargetCount = 0, IReadOnlyList<DatabaseMigrationOperationalExecutionGroupCommand>? productionCommands = null, IReadOnlyList<DatabaseMigrationOperationalExecutionGroupCommand>? manualCommands = null, string? coordinationHint = null)

order int

The positive execution-group order in the playbook.

physicalTargetId string

The stable physical-target identifier that anchors this execution group. When the runtime cannot resolve a physical database identity, the engine uses a logical fallback identifier instead of leaving the group anonymous.

physicalTargetDisplayName string

The operator-facing description of the physical target that anchors this group.

status DatabaseMigrationStatus

The aggregate execution status across the logical migration targets in this group.

databaseMigrationIds IReadOnlyList<string>?

The logical migration targets that belong to this execution group.

requestedRoleIds IReadOnlyList<string>?

The logical requested role ids represented in this group.

resolvedRoleIds IReadOnlyList<string>?

The concrete resolved role ids represented in this group.

productionReadyTargetCount int

The number of targets in this group that publish a production-recommended command.

manualPathTargetCount int

The number of targets in this group that publish a direct or manual command path.

applyOnStartupTargetCount int

The number of targets in this group that are configured for startup execution.

productionCommands IReadOnlyList<DatabaseMigrationOperationalExecutionGroupCommand>?

The selected production-recommended commands grouped for this physical-target batch.

manualCommands IReadOnlyList<DatabaseMigrationOperationalExecutionGroupCommand>?

The selected direct or manual commands grouped for this physical-target batch.

coordinationHint string?

The operator-facing coordination guidance for shared physical targets, when available.

Gets the number of targets in this group that are configured for startup execution.

public int ApplyOnStartupTargetCount { get; }

int

Gets the operator-facing coordination guidance for shared physical targets, when available.

public string? CoordinationHint { get; }

string?

Gets the logical migration targets that belong to this execution group.

public IReadOnlyList<string> DatabaseMigrationIds { get; }

IReadOnlyList<string>

Gets a value indicating whether every target in this group publishes a direct or manual command path.

public bool HasManualCommandsForAllTargets { get; }

bool

HasProductionRecommendedCommandsForAllTargets

Section titled “ HasProductionRecommendedCommandsForAllTargets”

Gets a value indicating whether every target in this group publishes a production-recommended command.

public bool HasProductionRecommendedCommandsForAllTargets { get; }

bool

Gets the combined manual command-batch template for this physical-target batch, when available.

public DatabaseMigrationOperationalExecutionGroupCommandBatch? ManualCommandBatch { get; }

DatabaseMigrationOperationalExecutionGroupCommandBatch?

Gets the selected direct or manual commands grouped for this physical-target batch.

public IReadOnlyList<DatabaseMigrationOperationalExecutionGroupCommand> ManualCommands { get; }

IReadOnlyList<DatabaseMigrationOperationalExecutionGroupCommand>

Gets the number of targets in this group that publish a direct or manual command path.

public int ManualPathTargetCount { get; }

int

Gets the positive execution-group order in the playbook.

public int Order { get; }

int

Gets the operator-facing description of the physical target that anchors this group.

public string PhysicalTargetDisplayName { get; }

string

Gets the stable physical-target identifier that anchors this execution group.

public string PhysicalTargetId { get; }

string

Gets the combined production command-batch template for this physical-target batch, when available.

public DatabaseMigrationOperationalExecutionGroupCommandBatch? ProductionCommandBatch { get; }

DatabaseMigrationOperationalExecutionGroupCommandBatch?

Gets the selected production-recommended commands grouped for this physical-target batch.

public IReadOnlyList<DatabaseMigrationOperationalExecutionGroupCommand> ProductionCommands { get; }

IReadOnlyList<DatabaseMigrationOperationalExecutionGroupCommand>

Gets the number of targets in this group that publish a production-recommended command.

public int ProductionReadyTargetCount { get; }

int

Gets the logical requested role ids represented in this group.

public IReadOnlyList<string> RequestedRoleIds { get; }

IReadOnlyList<string>

Gets a value indicating whether this execution group spans multiple logical migration targets on one physical database target.

public bool RequiresPhysicalTargetCoordination { get; }

bool

Gets the concrete resolved role ids represented in this group.

public IReadOnlyList<string> ResolvedRoleIds { get; }

IReadOnlyList<string>

Gets the aggregate execution status across the logical migration targets in this group.

public DatabaseMigrationStatus Status { get; }

DatabaseMigrationStatus

Gets the number of logical migration targets represented in this group.

public int TargetCount { get; }

int