BaseRepositoryService
Data access layer (DAL) interface to implements for any repository service. This layer helps to separate the business logic (service layer) from accessing the ORM directly and allows to switch to another ORM without changing the business logic.
Type parameters
T
objectRequiredMethods
getActiveManager
Returns
getFreshManager
Returns
serialize
Parameters
data
anyRequiredoptions
anyReturns
Promise
Promise<TOutput>Requiredtransaction
Parameters
task
(transactionManager: TManager) => Promise<any>Requiredcontext
objectcontext.enableNestedTransactions
booleancontext.isolationLevel
stringcontext.transaction
TManagerReturns
Promise
Promise<any>RequiredWas this section helpful?