Description
As per dotnet/roslyn-analyzers#7036 this Analyzer shouldn't trigger on IDbContextFactory<TContext>.CreateDbContext() due to the Async version was only added for specific edge-case purposes and not for general use.
Reproduction Steps
Add using AppDbContext dbContext = _dbContextFactory.CreateDbContext(); in an asynchronous method.
Other information
Some more insights can be found in dotnet/efcore#26630
Description
As per dotnet/roslyn-analyzers#7036 this Analyzer shouldn't trigger on
IDbContextFactory<TContext>.CreateDbContext()due to the Async version was only added for specific edge-case purposes and not for general use.Reproduction Steps
Add
using AppDbContext dbContext = _dbContextFactory.CreateDbContext();in an asynchronous method.Other information
Some more insights can be found in dotnet/efcore#26630