Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick-Anderson committed Oct 31, 2024
1 parent a9e8264 commit 92a36ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity-framework/core/dbcontext-configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ The `ApplicationDbContext` class must expose a public constructor with a `DbCont

[!code-csharp[ApplicationDbContext](../../../samples/core/Miscellaneous/ConfiguringDbContext/WebApp/ApplicationDbContext.cs?name=ApplicationDbContext)]

[!code-csharp[dbContext](../../../samples/core/Miscellaneous/ConfiguringDbContext/WebApp9/Data\ApplicationDbContext.cs)]
[!code-csharp[dbContext](../../../samples/core/Miscellaneous/ConfiguringDbContext/WebApp9/Data/ApplicationDbContext.cs)]

`ApplicationDbContext` can be used in ASP.NET Core controllers or other services through constructor injection:

Expand Down

0 comments on commit 92a36ab

Please sign in to comment.