Dependency Injection with .NET, 3rd Edition

Sample codes of "Dependency Injection With .NET " course on Udemy

This repository includes several .NET projects to demonstrate various dependency injection features in . NET. Currently, the minimum version of .NET needed to run these projects is .NET 8.

The Personal Blog

Personal Blog is an application that demonstrates how to do simple operations with DI in ASP.NET Core. The project implements a straightforward personal notes application.

This project can use both AWS DynamoDB and SQL Server as its storage.

To use AWS and its DynamoDB service, register DynamoDbDataService with the DI container in program.cs . To use SQL Server, use SqlServerDataService and register it with the DI container in program.cs .

If you wish to use SQL Server, make sure you run the Create_All_Objects.sql file, which is in the DatabaseScripts folder, first. It will create a database called "personalblog" along with all the required database objects. Then you must update the connection string in appSettings.json properly so that the application can connect to SQL Server.

More Free Courses on YouTube!

YouTube

Subscribe to the Free Technology and Technology Management Courses channel for regular free lectures about Coding, DevOps, and Technology Management. Click Here to View the YouTube Channel.

Buy me a coffee ☕

If you find my work helpful, consider treating me by buying me a coffee!

ko-fi