Starts in:
2 DAYS
0 HR
34 MIN
14 SEC
Starts in:
2 D
0 H
34 M
14 S
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
    Support Team Fullstack Developer

    You can try:

    Repository.UpdateAsync(.., autoSave: true)
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06