This method is async only to allow special value generators, such as the one used by 'Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy.SequenceHiLo', to access the database asynchronously. For all other cases the non async method should be used.
As you can’t easily suppress Sonar warning this is very annoying within larger crud applications.
JetBrains Rider 2024.1.4
Build #RD-241.18034.76, built on June 23, 2024
org.sonarlint.idea (10.7.0.78874)
Sadly don’t have access to a code sample at this time, but it;s easily reproducable by just having a service using Context.Add instead of Context.AddAsync within an async method.