parent
0019a56f0d
commit
e01d5b0c9b
|
@ -239,7 +239,7 @@ The `update` command runs the `Up` method in migrations that have not been appli
|
|||
|
||||
### Examine the context registered with dependency injection
|
||||
|
||||
ASP.NET Core is built with [dependency injection](xref:fundamentals/dependency-injection). Services, such as the EF Core database context, are registered with dependency injection during application startup. Components that require these services (such as Razor Pages) are provided these services via constructor parameters. The constructor code that gets a database context instance is shown later in the tutorial.
|
||||
ASP.NET Core is built with [dependency injection](xref:fundamentals/dependency-injection). Services, such as the EF Core database context, are registered with dependency injection during application startup. Components that require these services (such as Razor Pages) are provided via constructor parameters. The constructor code that gets a database context instance is shown later in the tutorial.
|
||||
|
||||
The scaffolding tool automatically created a database context and registered it with the dependency injection container.
|
||||
|
||||
|
|
Loading…
Reference in New Issue