Get Started with DigitalOcean using ASP.NET: Chapter 4 Installing Entity Framework

We will now install Entity Framework Core for PostgreSQL. The reason we are choosing PostgreSQL is because we can create a managed database in DigitalOcean platform. We will also install Entity Framework Core Design for creating database migrations. We will use the following commands to install it: dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL dotnet add package Microsoft.EntityFrameworkCore.Design … Continue reading Get Started with DigitalOcean using ASP.NET: Chapter 4 Installing Entity Framework

Get Started with DigitalOcean using ASP.NET: Chapter 3 Creating a DigitalOcean App

Creating a DigitalOcean account is just like signing up on any normal website. You can use your Google account, GitHub account or simply your email address. Or you can use my referral link for getting $200 free credits for 2 months. Click here to Sign Up. Once we are in, we will create a DigitalOcean … Continue reading Get Started with DigitalOcean using ASP.NET: Chapter 3 Creating a DigitalOcean App

Get Started with DigitalOcean using ASP.NET: Chapter 2 Creating a GitHub Repository

We are assuming that you already have a GitHub account. We would make a GitHub repository for our project and name it whatever we like. Once repository is created, we will follow the steps from the second portion which is for pushing an existing repository. We will only copy and paste the first and second … Continue reading Get Started with DigitalOcean using ASP.NET: Chapter 2 Creating a GitHub Repository

Get Started with DigitalOcean using ASP.NET: Chapter 1 Creating a Minimal API ASP.NET Project

For this book, we will be using Microsoft Visual Studio 2022 Community Edition. We will begin by creating a new project in Visual Studio of type ASP.NET Core Web API On the next page, we will choose .NET 6 (as it has long term support) and uncheck the box of “Use Controllers” to continue with … Continue reading Get Started with DigitalOcean using ASP.NET: Chapter 1 Creating a Minimal API ASP.NET Project

Dependency Injection in ASP.NET

Dependency Injection is a software design pattern that promotes loose coupling and modularity in code by separating the creation of objects from their usage. Whether you use constructor injection, setter injection, or interface injection, Dependency Injection can help you manage complex systems with ease and achieve greater flexibility, modularity, and scalability in your codebase.