2025-01-01 · Last updated 2026-01-05 · 1 min read

CRUD Operations with EF Core

Hello World

Welcome to my blog!

This website is powered by ASP.NET Core, authored in Markdown, and generated into static HTML for blazing-fast performance.

This is a great test post to ensure:

  • Markdown works
  • Syntax highlighting works
  • TOC works
  • Breadcrumbs work
  • SEO works

Quick C# Hello World

Here's the classic example in C#:

using System;

public class Program
{
    public static void Main()
    {
        Console.WriteLine("Hello, World from .NET Static Site!");
    }
}

Production Notes

Real-world
What to watch out for when you build this in real systems.
  • Avoid tracking queries on read-only endpoints (AsNoTracking) for performance.
  • Use pagination on any list endpoint (never ToList() on unbounded queries).
  • Add a unique index for natural keys (Email, Slug, etc.) to prevent race conditions.
  • Watch out for N+1 queries when loading related entities.

Comments

Powered by GitHub Discussions (Giscus)

Click to load comments.


Related Posts


← Previous in series
Getting started with EF Core