Skip to content

RCS1261 shouldn't trigger on IDbContextFactory<TContext>.CreateDbContext() #1760

Description

@Sella-GH

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions