0
barrett2474 created
Greetings,
I have a background job that when it executes, I wish to do a number of database calls. It's important that they are wrapped in a single transaction (UnitOfWork).
Question Will using the Attribute "UnitOfWork" on the said AsyncBackgroundJob be the best way?
[UnitOfWork(isTransactional: true)]
public override async Task ExecuteAsync(SaveTransactionFileUploadDto args)
Thanks you for your time,
Regards John
- ABP Framework version: v5.2.2
- UI type: Blazor WASM
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): no
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)