abp
abp copied to clipboard
How to get the number of affected rows ?
Hi ,how to get the num of updated rows. I'd like to konw the data has been updated beacause of concurrency issues.
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_