diff --git a/analyzers/tests/SonarAnalyzer.Test/TestCases/Hotspots/ExecutingSqlQueries.EntityFrameworkCore2.cs b/analyzers/tests/SonarAnalyzer.Test/TestCases/Hotspots/ExecutingSqlQueries.EntityFrameworkCore2.cs index 7a7e3b0c0d8..6ecb2d4d6fe 100644 --- a/analyzers/tests/SonarAnalyzer.Test/TestCases/Hotspots/ExecutingSqlQueries.EntityFrameworkCore2.cs +++ b/analyzers/tests/SonarAnalyzer.Test/TestCases/Hotspots/ExecutingSqlQueries.EntityFrameworkCore2.cs @@ -89,7 +89,7 @@ public void ConcatAndFormat(DbContext context, string query, params object[] par public void Foo(BloggingContext context, string query) { - var b = context.Blogs.FromSql($"{query}"); // Compliant - FN, See: https://github.com/SonarSource/sonar-dotnet/issues/5636 + var b = context.Blogs.FromSql($"{query}"); // Compliant: interpolated strings are safe in EF (https://learn.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.relationalqueryableextensions.fromsql?view=efcore-2.0#microsoft-entityframeworkcore-relationalqueryableextensions-fromsql-1(system-linq-iqueryable((-0))-system-formattablestring)) } }