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
Blog
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
How to build your package for Flutter?
Just like any other platform, there would be time when you created a piece of code that you may want to use in multiple projects of yours but you do not want to copy paste the code. Because copy pasting will raise several problems, one of which is fixes in that piece of code. If … Continue reading How to build your package for Flutter?
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.
CRUD Operations in Entity Framework
How to use Entity Framework Core for (CRUD) Create, Read, Update, and Delete?
ASP.NET Claims and Identities
ASP.NET Claims and Identities is a framework for managing authentication and authorization in an ASP.NET application. It is based on the concept of claims, which are statements about an entity that can be used to make decisions about that entity. One of the key benefits of using claims is that they are flexible and can … Continue reading ASP.NET Claims and Identities
Entity Framework Inheritance Table Per Type (TPT) in .NET
Table per Type (TPT) is a type of inheritance mapping in Entity Framework where each derived entity type is mapped to a separate table in the database. For example, consider the following object model: Copy codepublic abstract class Vehicle{ public int Id { get; set; } public string Make { get; set; } public string … Continue reading Entity Framework Inheritance Table Per Type (TPT) in .NET
AWS S3 using .NET
AWS S3 (Amazon Simple Storage Service) is a cloud storage service provided by Amazon Web Services (AWS). It is a highly scalable, object-based storage service that offers industry-leading durability and availability. Using AWS S3 from .NET is easy, thanks to the AWS SDK for .NET. The AWS SDK for .NET is a collection of libraries … Continue reading AWS S3 using .NET