abpframework / abp

Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
https://abp.io
GNU Lesser General Public License v3.0
12.78k stars 3.41k forks source link

7.0.1.0 version ThrowAggregateUpdateConcurrencyException #20459

Open 15768495614 opened 1 month ago

15768495614 commented 1 month ago

Is there an existing issue for this?

Description

Entity inherits AggregateRoot , When I call Repository.UpdateAsync method , The value of ConcurrencyStamp was changed ,resulting in a concurrency conflict exception being thrown

why ?

Reproduction Steps

No response

Expected behavior

No response

Actual behavior

No response

Regression?

No response

Known Workarounds

No response

Version

7.0.1.0

User Interface

Common (Default)

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

No response

15768495614 commented 1 month ago

这是使用的是postgresql

15768495614 commented 1 month ago

I haven't changed the Concur Stamp in my code

15768495614 commented 1 month ago

{013963A0-7499-4AA8-5A38-9A2B8627A124} 这是5.3.3的版本 使用的是sqlserver 并没有问题

15768495614 commented 1 month ago

Entry(entity).Property(x => x.ConcurrencyStamp).OriginalValue = entity.ConcurrencyStamp; entity.ConcurrencyStamp = Guid.NewGuid().ToString("N");

15768495614 commented 1 month ago

大大的bug,不清楚是efcore 包,还是 postgre的包的bug