You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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**.
Repro steps
Any DbSet.Add from entityframework core
Expected behavior
Shoudn't force to use AddAsync or AddRangeAsync
Actual behavior
force to use async version
The text was updated successfully, but these errors were encountered:
Description
https://rules.sonarsource.com/csharp/RSPEC-6966/
According to their documentation
https://learn.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.dbcontext.addasync?view=efcore-8.0
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**.
Repro steps
Any DbSet.Add from entityframework core
Expected behavior
Shoudn't force to use AddAsync or AddRangeAsync
Actual behavior
force to use async version
The text was updated successfully, but these errors were encountered: