0009 - Howto guide to Dependency Injection in ASP.NET MVC Core

Опубликовано: 11 Октябрь 2024
на канале: clouddeveloper.io
2,248
15

Title: Howto guide to Dependency Injection in ASP.NET MVC Core

In this howto tutorial we cover the topic of Dependency Injection in ASP.NET MVC Core application.

We cover the topic of dependency life times (Transient, Scoped, Singleton) which are an important aspect of Dependency Injection.
We then jump into Visual Studio 2017 Community Edition to show you how to create an Application Settings Service and register it with a Singleton lifetime within the application.
Once those things are done, we go through the process of connecting all of the pieces together to ensure that we are able to obtain the information directly from the database and display it on the screen by using Dependency Injection that is built directly into ASP.NET MVC Core framework.

This video leverages an application that was created in prior video sessions so if you would like to check them out you can do that by going to the following links:

0003 - IIS Install and .NET MVC Core Web App tutorial -    • 0003 - IIS Install and  .NET MVC Core...  
0005 - ASP.NET MVC Core & Entity Framework tutorial -    • 0005 - ASP.NET MVC Core & Entity Fram...  
0006 - Configuration files in ASP.NET MVC Core tutorial -    • 0006 - Configuration files in ASP.NET...  
0007 - Creating a View in ASP NET MVC Core tutorial -    • 0007 - Creating a View in ASP NET MVC...  
0008 - Howto guide to conventional routing in ASP.NET MVC Core -    • 0008 - Howto guide to conventional ro...  

Google+: https://plus.google.com/b/10136823524...
Facebook: https://www.fb.me/clouddeveloper.io
Twitter:   / ilozovyy  


#aspnet #dotnetcore #mvc #dependencyinjection #entityframework #beginners