Skip to main content
Skip to main content

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

TobjectRequired

Methods

getActiveManager

Returns


getFreshManager

Returns


serialize

Parameters

dataanyRequired
optionsany

Returns

PromisePromise<TOutput>Required

transaction

Parameters

task(transactionManager: TManager) => Promise<any>Required
contextobject
context.enableNestedTransactionsboolean
context.isolationLevelstring
context.transactionTManager

Returns

PromisePromise<any>Required
Was this section helpful?