Tag: asp net
-
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: Make sure you install the packages compatible with…
-
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…
-
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…
-
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…
-
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…
-
Coma Separated Weekdays Attribute Validation in C# for ASP.NET Web API
Weekdays Validation Attribute with coma separated values in C# for ASP.NET Web API
-
Entity Framework Core Database First to Code Model
Entity Framework Core Database First Approach to a Model
-
How to setup Windows Server? Part 1: The Server
If you are a non-techy or do not want the headache, I can offer to install it for you. You can just put a comment on this post or reach me out on Twitter at @ghulamostafa. For many of us, we still use ASP.NET or ASP.NET Core to build our applications. Unlike the other web…