Skip to content

Commit

Permalink
Inherit from Controller class (#3415)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanillajonathan committed Sep 4, 2021
1 parent bb380a2 commit a8e9d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity-framework/core/what-is-new/ef-core-5.0/whatsnew.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ services.AddDbContextFactory<SomeDbContext>(b =>
At this point, application services such as ASP.NET Core controllers can then be injected with `IDbContextFactory<TContext>`, and use it to instantiate context instances:

```csharp
public class MyController
public class MyController : Controller
{
private readonly IDbContextFactory<SomeDbContext> _contextFactory;

Expand Down

0 comments on commit a8e9d4f

Please sign in to comment.