Class EntityNestedTransactionalQueryContext

Entity framework representation of a nested transactional query execution unit. When supplied to EntityMutator and EntityLoader methods, those methods and their dependent triggers and validators will run within the nested transaction.

This exists to forward post-commit callbacks to the parent query context.

Hierarchy

Constructors

Properties

postCommitCallbacksToTransfer: PostCommitCallback[] = []
postCommitInvalidationCallbacksToTransfer: PostCommitCallback[] = []

Methods

  • Schedule a pre-commit callback. These will be run within the transaction right before it is committed, and will be run in the order specified. Ordering of callbacks scheduled with the same value for the order parameter is undefined within that ordering group.

    Parameters

    • callback: PreCommitCallback

      callback to schedule

    • order: number

      order in which this should be run relative to other scheduled pre-commit callbacks, with higher numbers running later than lower numbers.

    Returns void

Generated using TypeDoc