Member Junction
    Preparing search index...

    An ordered set of record operations that must succeed or fail together.

    Built by BaseEntity.BuildSavePlan() / BuildDeletePlan(), which seed the root node and then let each companion contribute via EntityCompanion.ContributeSaveWork() / ContributeDeleteWork().

    Ordering is explicit and positional — nodes execute in the order they were added. Companions that need their work to run before the parent (deletions of children, for instance) add it before the parent node exists, which is why ContributeDeleteWork is called first on the delete path and ContributeSaveWork last on the save path.

    Index

    Constructors

    Properties

    The record the plan is rooted at — the entity whose Save() / Delete() was called.

    Accessors

    • get NodeCount(): number

      How many operations this plan will perform.

      A count of 1 means the plan is just the root record, and BaseEntity takes its ordinary single-record path — no plan execution, no transaction scope, byte-for-byte the behavior that existed before companions. This is what keeps the overwhelmingly common case free of any new cost or risk.

      Returns number

    Methods

    • Composes a callback onto the root node's Prepare. Later callbacks run after earlier ones. Used to stamp an owner-held FK after the embedded node has assigned its primary key.

      Parameters

      • fn: () => void

        Applied immediately before the root node executes.

      Returns void