Bug description
IDbContextFactory<TContext>.CreateDbContext() incorrectly reports VSTHRD103 and suggest to use CreateDbContextAsync() although the async method should only be used in edge cases.
Repro steps
var factory = new Microsoft.EntityFrameworkCore.DbContextFactory<Microsoft.EntityFrameworkCore.DbContext>();
factory.CreateDbContext();
Expected behavior
No warning
Actual behavior
warning VSTHRD103: CreateDbContext synchronously blocks. Await CreateDbContextAsync instead.
Additional context
.Net 10
Simmilar to #1480
Bug description
IDbContextFactory<TContext>.CreateDbContext()incorrectly reports VSTHRD103 and suggest to useCreateDbContextAsync()although the async method should only be used in edge cases.Repro steps
Expected behavior
No warning
Actual behavior
warning VSTHRD103: CreateDbContext synchronously blocks. Await CreateDbContextAsync instead.
Additional context
.Net 10
Simmilar to #1480