.NET: CLR, Ecosystem & Project Structure .NET is Microsoft's cross-platform, open-source framework for building web, desktop, mobile, cloud, and IoT applications. .NET 8 (LTS) and .NET 9 are current. The CLR (Common Lang…
Read.NET: ASP.NET Core Web APIs Minimal API (modern approach) // Program.cs — entry point and composition root var builder = WebApplication.CreateBuilder(args); builder.Services.AddOpenApi(); builder.Services.AddDbContext<Ap…
Read.NET: Entity Framework Core EF Core is the official ORM for .NET. It supports PostgreSQL (Npgsql), SQL Server, SQLite, MySQL, and others. Uses LINQ for queries and Code First migrations. DbContext & Models // Models/User…
Read.NET: Dependency Injection & Middleware Dependency Injection ASP.NET Core has a built-in DI container. Services are registered in Program.cs and injected via constructor injection. // Service lifetimes builder.Services.A…
Read.NET: Deployment, Performance & Interview Questions Publishing & Docker # Publish for production dotnet publish -c Release -o ./publish # Self-contained (no runtime needed on target) dotnet publish -c Release -r linux-x6…
Read.NET: SignalR & Background Services SignalR — Real-Time Communication SignalR abstracts WebSockets, Server-Sent Events, and Long Polling behind a single Hub API. Clients can receive server pushes without polling. // Prog…
Read.NET: Testing xUnit Basics // dotnet add package xunit xunit.runner.visualstudio // dotnet add package Moq // dotnet add package FluentAssertions // dotnet add package Bogus (fake data) public class CalculatorTests { [Fa…
Read.NET: Caching & gRPC Caching Strategies // IMemoryCache — in-process, single server builder.Services.AddMemoryCache(); public class ProductService(IMemoryCache cache, IProductRepository repo) { public async Task<Product?…
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever