Articles tagged #ASP.NET Core
20 article(s)
-
ASP.NET Core MVC Filters: Built-in and Custom with Examples
The five filter stages, the built-in attributes you get for free, and custom action, exception, and result filters with dependency injection — verified outputs included.
@llaxmikant · Jul 23, 2026 -
Building Scalable Applications: Microservice Architecture Challenges
While microservices architecture provides significant advantages in scalability, flexibility, and maintainability, it also introduces unique challenges that must be carefully considered when designing
@llaxmikant · Jul 22, 2026 -
Implement Repository Pattern with ASP.NET Core Web API
Implement the Repository Pattern with ASP.NET Core Web API on .NET 10 — EF Core 10, DTO mapping with extension methods, async CRUD operations, and the built-in OpenAPI support with Scalar.
@llaxmikant · Jul 13, 2026 -
Modern .NET Backend Roadmap — Part 6: Docker
Package the API as a container: multi-stage Dockerfile, layer-cache-friendly restore, non-root user, and the two real build failures you will hit — verified with a running container.
@llaxmikant · Jun 26, 2026 -
Modern .NET Backend Roadmap — Part 5: Caching
Cache the hot read path with IMemoryCache and GetOrCreateAsync, choose expirations, survive stampedes and invalidation, and know when Redis and HybridCache enter.
@llaxmikant · Jun 19, 2026 -
AutoMapper in ASP.NET Core Web API — and the Modern Alternatives
AutoMapper usage in ASP.NET Core Web API, its 2025 commercial licensing change, and the modern alternatives — hand-written mapping extension methods and the Mapperly source generator.
@llaxmikant · Jun 12, 2026 -
How to Use Areas in ASP.NET Core MVC
Structure a growing MVC app with areas: folder conventions, the {area:exists} route, view resolution, cross-area links, and securing an area with a policy.
@llaxmikant · Jun 11, 2026 -
Getting Started with ASP.NET Core Web API and Entity Framework
Build your first ASP.NET Core Web API on .NET 10 with Entity Framework Core — scaffold models from SQL Server, add an async controller, and test with the built-in OpenAPI document and Scalar.
@llaxmikant · May 28, 2026 -
Modern .NET Backend Roadmap — Part 1: Clean Architecture
Start the roadmap with a clean-architecture solution on .NET 10: domain entities with behavior, application-layer ports, infrastructure adapters, and a thin API — dependencies enforced by the compiler
@llaxmikant · May 22, 2026 -
Structured Logging in ASP.NET Core with Serilog and Seq
Wire Serilog into ASP.NET Core with console, rolling-file, and Seq sinks: request logging, enrichment, levels, and the named-placeholder habit that makes logs queryable.
@llaxmikant · Apr 26, 2026 -
RESTful CRUD Operations with ASP.NET Core Minimal APIs
Build a CRUD API with correct verbs and status codes: 201 with Location, 204 for deletes, RFC 9457 validation problems, and compile-checked typed results — verified with curl.
@llaxmikant · Apr 10, 2026 -
Redirects in ASP.NET Core MVC: RedirectToAction, LocalRedirect and More
Choose the right redirect: RedirectToAction for app flows, 301 permanents for SEO, LocalRedirect against open redirects, and named routes with RedirectToRoute.
@llaxmikant · Apr 6, 2026 -
EF Core Migrations in a Separate Assembly
Put migrations in your data project where they belong: MigrationsAssembly, a design-time factory, the exact commands, and the classic errors this setup prevents.
@llaxmikant · Mar 29, 2026 -
How to Setup CORS Policies in ASP.NET Core Web API
Configure CORS in ASP.NET Core Web API — default and named policies, origin/method/header restrictions, preflight requests, per-endpoint policies with RequireCors, and EnableCors/DisableCors attribute
@llaxmikant · Mar 2, 2026 -
Using Fluent API in EF Core Code First
EF Core Fluent API configuration in OnModelCreating — tables, columns, keys, indexes, relationships, query filters, value conversions, and when to prefer it over DataAnnotations.
@llaxmikant · Feb 16, 2026 -
How to Configure Entity Relationships using Fluent API in Entity Framework Core
Configure one-to-one, one-to-many, and many-to-many relationships with the EF Core Fluent API — HasOne/WithOne, HasForeignKey, OnDelete behaviors, and EF Core 5+ skip navigations without a join entity
@llaxmikant · Feb 11, 2026 -
Read appsettings.json in a .NET Class Library with Dependency Injection
The options pattern done right: the host owns configuration sources, the library declares typed settings, and DI carries one to the other — with validation at startup.
@llaxmikant · Jan 28, 2026 -
EF Core Code First Migrations with DataAnnotations Attributes
Shape your SQL Server schema with DataAnnotations — Table, Column, Key, Required, MaxLength, Index, Timestamp, ConcurrencyCheck — and apply it with EF Core migrations, verified against a real database
@llaxmikant · Jan 27, 2026 -
Entity Framework Core Database-First Tutorial
Scaffold a DbContext and entities from an existing SQL Server database with dotnet ef dbcontext scaffold — what gets generated, re-scaffolding on schema changes, and extending via partial classes.
@llaxmikant · Jan 15, 2026 -
Compare DataTables with LINQ: Except, Intersect and Union
Diff two data snapshots with LINQ set operators: what was added, removed, changed, and unchanged — including the modern ExceptBy/IntersectBy/UnionBy variants.
@llaxmikant · Jan 1, 2026