Sample codes of "Dependency Injection With .NET " course on Udemy
This repository includes several .NET projects to demonstrate various dependency injection features. NET. Currently, the minimum version of .NET needed to run these projects is .NET 9.
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 the program.cs
If you want to use SQL Server, please first run the Create_All_Objects.sql file in the DatabaseScripts folder. This will create a" personal blog" database with all required objects. Then, you must adequately update the connection string in appSettings JSON so the application can connect to the SQL Server.