Class EntityTransactionalQueryContext

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

Hierarchy

Constructors

Properties

entityQueryContextProvider: EntityQueryContextProvider
postCommitCallbacks: PostCommitCallback[] = []
postCommitInvalidationCallbacks: PostCommitCallback[] = []
preCommitCallbacks: {
    callback: PreCommitCallback;
    order: number;
}[] = []

Type declaration

Methods

  • Schedule a post-commit cache invalidation callback. These are run before normal post-commit callbacks in order to have cache consistency in normal post-commit callbacks.

    Parameters

    Returns void

  • 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