Starts in:
2 DAYS
3 HRS
58 MIN
4 SEC
Starts in:
2 D
3 H
58 M
4 S
Open Closed

Transaction with UnitOfWork not working #3774


User avatar
0
thaithiendi created

Dear support Team,

I'm using IUnitOfWorkManager to make Transaction with execute store procedue oracle. This my code: When debug code, I intentionally let it be error in //CREATE PDF FILE I want to rollback //UPDATE TASK When error in //CREATE PDF FILE, it throw exception but my database still save info of //UPDATE TASK. How can I rollback //UPDATE TASK?

  • ABP Framework version: v5.3.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi thaithiendi

    1. Try to remove app.UseUnitOfWork() from the ASP.NET Core pipeline.
    2. if 1 doesn't work, please share some code to reproduce the problem.
  • User Avatar
    0
    thaithiendi created

    Dear maliming ,

    I try to remove app.UseUnitOfWork() but issue not resolved. This my controller code, it not implement IUnitOfWorkManager: This my service code

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a simple project to reproduce? liming.ma@volosoft.com

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06