The dependency injection feature in ASP.NET Core is:
- A built-in container for managing application dependencies
- A third-party library for dependency management
- Not available in ASP.NET Core
- Limited to a specific programming language
ASP.NET Core includes a built-in dependency injection (DI) container for managing application dependencies. This feature helps achieve loose coupling, maintainability, and testability in your code by allowing you to inject dependencies into classes rather than hard-coding them.
Loading...
Related Quiz
- If you wish to limit the elements on which your custom tag helper is applied, you can set the _______ property.
- You're building a simple website using ASP.NET Core. You want to display a friendly error page when something goes wrong in your application. What's the standard way to do this in ASP.NET Core?
- To define relationships, constraints, or to configure non-entity types, you should override the _________ method in the DbContext.
- A _________ in a DbContext represents a collection of entities that can be queried from the database.
- What is the primary use of the IExceptionHandlerPathFeature interface in ASP.NET Core?