Skip to main content

StateTransitionCollection

  • Namespace: PPDS.Migration.Import
  • Assembly: PPDS.Migration
  • Kind: Class

Summary​

Thread-safe collection of state transitions to apply after record import.

Members​

Methods​

Add​

void Add(string entityName, Guid recordId, StateTransitionData data)

Adds a state transition for a record.

  • Param entityName: The entity logical name.

  • Param recordId: The record ID.

  • Param data: The state transition data.

GetEntityNames​

IEnumerable<string> GetEntityNames()

Gets all entity names that have transitions.

GetTransitions​

IReadOnlyList<StateTransitionData> GetTransitions(string entityName)

Gets all transitions for a given entity.

  • Param entityName: The entity logical name.

  • Returns: A read-only list of transitions, or an empty list if none exist.

Properties​

Count​

int Count { get; }

Gets the total number of transitions across all entities.