Skip to main content

Posts

Azure AI Document Intelligence C# Tutorial (2026)

Recent posts

CQRS with MediatR in ASP.NET Core — Full Guide 2026

Learn CQRS with MediatR in ASP.NET Core. Step-by-step tutorial with code examples, best practices, and real-world patterns. Start building today! CQRS with MediatR in ASP.NET Core — The Complete Guide If you've been building ASP.NET Core applications for a while, you've probably noticed how controllers bloat with business logic over time. MediatR in ASP.NET Core solves this by implementing the mediator pattern, which pairs perfectly with the CQRS pattern in C# to create clean, testable, and maintainable applications. In this tutorial, you'll learn how to implement command query separation from scratch with practical, runnable code examples. CQRS — Command Query Responsibility Segregation — is an architectural pattern that separates read operations (queries) from write operations (commands). Instead of using the same model and service layer for both reads and writes, you create dedicated paths for each. MediatR acts as the glue, routing commands and queries to ...

C# Unit Testing with xUnit: TDD Tutorial (2026)

Learn C# unit testing with xUnit and test-driven development. Step-by-step tutorial with code examples, best practices, and common pitfalls. C# Unit Testing with xUnit: A Complete Test-Driven Development Tutorial C# unit testing is one of the most essential skills every .NET developer must master in 2026. Whether you are building APIs, desktop applications, or microservices, writing automated tests ensures your code works correctly, catches regressions early, and gives you the confidence to refactor without fear. In this comprehensive xUnit tutorial, you will learn how to write unit tests in C# using the test-driven development (TDD) approach — from your very first test to advanced patterns used in production codebases. By the end of this guide, you will understand how to set up xUnit in a .NET project, write meaningful tests using the Arrange-Act-Assert pattern, apply TDD to build reliable software, and avoid the most common unit testing mistakes that developers make. Why...

Azure Functions C# Tutorial: Build & Deploy Step by Step

Learn Azure Functions with C# in this step-by-step tutorial. Build, test, and deploy serverless functions with practical code examples. Azure Functions C# Tutorial — Build and Deploy Serverless Applications Step by Step Azure Functions C# is one of the fastest ways to build scalable, event-driven applications without managing infrastructure. Whether you need to process HTTP requests, respond to database changes, or run scheduled tasks, Azure Functions lets you write focused C# code that runs only when triggered — and you pay only for the execution time you use. In this tutorial, you will learn how to create, test, and deploy an Azure Function using C# from scratch. By the end, you will have a working serverless API running in the cloud, and a solid understanding of how Azure Functions fit into modern .NET application architecture. What Are Azure Functions and Why Use C# for Serverless? Azure Functions is Microsoft's serverless compute platform. Instead of provision...

Entity Framework Core 9 Tutorial: Migrations & Performance

Learn Entity Framework Core 9 with migrations, relationships, and performance tips. Practical C# examples and best practices for EF Core developers. Entity Framework Core 9 Tutorial — Migrations, Relationships & Performance Tips Entity Framework Core is the most popular ORM for .NET developers, and version 9 brings significant improvements to migrations, query performance, and relationship mapping. Whether you're building your first API or optimizing a production application, mastering EF Core is essential for modern C# development. In this Entity Framework Core tutorial, you'll learn how to handle code first migrations , configure complex EF Core relationships , and apply proven EF Core performance techniques — all with practical, runnable code examples. Setting Up Entity Framework Core 9 in Your Project Before diving into migrations and relationships, let's set up a clean EF Core 9 project. You'll need the .NET 9 SDK installed. // Install the req...