Skip to main content
Version: 5.9

TransactionContext

Index

Constructors

constructor

Properties

readonlyem

readonlyid

id: number = ...

Methods

staticcreateAsync

  • createAsync<T>(em, next): Promise<T>
  • Creates new TransactionContext instance and runs the code inside its domain.


    Type parameters

    • T

    Parameters

    Returns Promise<T>

staticcurrentTransactionContext

staticgetEntityManager