abp icon indicating copy to clipboard operation
abp copied to clipboard

How to get the number of affected rows ?

Open wingqing1314 opened this issue 6 years ago • 1 comments

Hi ,how to get the num of updated rows. I'd like to konw the data has been updated beacause of concurrency issues.

wingqing1314 avatar May 12 '20 11:05 wingqing1314

See https://docs.abp.io/en/abp/master/Entity-Framework-Core#access-to-the-ef-core-api.

DbContext.SaveChangesAsync() return number of affected rows : https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.dbcontext.savechangesasync?view=efcore-3.1#Microsoft_EntityFrameworkCore_DbContext_SaveChangesAsync_System_Threading_CancellationToken_

realLiangshiwei avatar May 12 '20 11:05 realLiangshiwei