SonarSource/sonar-dotnet

Fix S6966 FP/FN: Should not raise for EF-Core known methods

Closed this issue · 2 comments

Description

S6966 identifies opportunities to use awaitable methods instead of synchronous ones.
However, Microsoft states that AddAsync and AddRangeAsync in EF-Core should not be chosen by default in most cases.

This rule should not raise when calling DBSet.Add() or DBSet.AddRange().

This has been raised over 20 times on SonarCloud last week.

Duplicate of #9269

Closed as duplicate of #9269