Implementing Middleware Patterns in ASP.NET Core

In ASP.NET Core 2.2, middleware is configured in the Startup class: public void Configure(IApplicationBuilder app, IHostingEnvironment env) { app.Use(async (context, next) => { context.Response.ContentType = "text/html; charset=utf-8"; await context.Response.WriteAsync("<h3>Middleware1 start</ ...

Posted on Sat, 20 Jun 2026 17:58:51 +0000 by Reformed

Mastering Service Configuration via Dependency Injection in ASP.NET Core

Foundations of Dependency Injection ASP.NET Core was engineered from the ground up as a modular framework that adheres to established software engineering principles. At its core lies Dependency Injection (DI), also referred to as Inversion of Control (IoC). While the theoretical underpinnings extend far beyond this chapter, mastering it is non ...

Posted on Sat, 30 May 2026 23:22:21 +0000 by ozconnect

Building Your First ASP.NET Core Web Application

HTTP Request Processing Overview Every ASP.NET Core application handles client traffic through a centralized processing pipeline. When a browser sends an HTTP request, the framework routes it through a chain of middleware components. Each component can inspect, modify, or terminate the request before forwarding it to a terminal endpoint. The re ...

Posted on Thu, 21 May 2026 20:57:07 +0000 by Zay

Integrating Entity Framework Core with ASP.NET Core Web API

This guide demonstrates how to implement data access in an ASP.NET Core Web API using Entity Framework Core with MySQL. The examples assume a Database First approach where the database schema already exists. Required NuGet Packages Install the following packages via NuGet Package Manager or CLI: Microsoft.EntityFrameworkCore Pomelo.EntityFrame ...

Posted on Fri, 15 May 2026 05:19:14 +0000 by jikishlove

Using Entity Framework Core for Data Persistence in ASP.NET Core

Entroduction to Entity Framework Core Database access code appears throughout web applications. Whether you're building an e-commerce platform, a blog, or the next big thing, you'll likely need to interact with a database. Unfortunately, interacting with databases from application code is often cumbersome. Many different approaches exist for th ...

Posted on Sat, 09 May 2026 16:33:23 +0000 by scottb1