BEST
DEALS
OF THE
YEAR!
SAVE UP TO $3,000
24 NOV
1 DEC
00 Days
00 Hrs
00 Min
00 Sec
Open Closed

SaveChangesAsync() method calling required for all repository methods after upgrading to abp 7.2.2 #5279


User avatar
0
vrkbandaru created
  • ABP Framework version: v7.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

After upgrading the microservice ABP version to 7.2.2, it is necessary to include the following line of code in every repository method to insert/update records: "await CurrentUnitOfWork.SaveChangesAsync();"

Is there a way to globalise this rather than individually adding the above line to each repository method? below is the screenshot of couple of repository methods.


1 Answer(s)
  • User Avatar
    1
    liangshiwei created
    Fullstack Developer

    You can try:

    Repository.UpdateAsync(.., autoSave: true)
    
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 20, 2025, 09:12
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.