EF Core Migrations: Managing Schema Changes Safely
Ship EF Core migrations safely: add and remove migrations, generate SQL scripts and bundles, avoid startup Migrate() races, handle data loss.
Category
Backend development is the server-side work behind an application: APIs, business logic, databases, queues and background jobs. Backend engineers pick languages such as Java, Python, Node.js or C#, decide how data is stored and how services talk to each other, and keep it all fast and correct under load. Most of the hard calls are trade-offs, such as SQL against NoSQL or a monolith against microservices.
177 articles
Ship EF Core migrations safely: add and remove migrations, generate SQL scripts and bundles, avoid startup Migrate() races, handle data loss.
Configure EF Core relationships: one-to-many, many-to-many with skip navigations, one-to-one, foreign key conventions, HasOne and WithMany, delete behavior.
Start with Entity Framework Core code first: entities, DbContext, provider choice, dotnet ef tooling, conventions vs fluent API,…
Handle ASP.NET Core error handling with RFC 9457 Problem Details: AddProblemDetails, IExceptionHandler, validation, trace ids, and no stack…
Add ASP.NET Core authentication and authorization to a Web API: JWT bearer and cookies, claims, roles, policies, and…
Master dependency injection in ASP.NET Core: transient, scoped, and singleton lifetimes, captive dependencies, the options pattern, and keyed…
Build an ASP.NET Core Web API end to end: controllers, attribute routing, model binding and validation, DTOs, status…
Understand ASP.NET Core middleware: pipeline order, Use, Run, and Map, writing custom middleware classes, endpoint routing, and how…
Enable nullable reference types in C#: nullability annotations, the ! operator, required members, nullability attributes, and a legacy…
Use async and await in C# correctly: what Task really is, ValueTask, ConfigureAwait, async void, cancellation tokens, and…
Write idiomatic LINQ in C#: query vs method syntax, deferred execution, IEnumerable vs IQueryable, multiple enumeration traps, and…
Master object-oriented C#: classes, properties, constructors, inheritance, abstract classes, interfaces, records, and when composition beats inheritance.
Learn C# basics for backend work: value vs reference types, var, string interpolation, if and switch expressions, loops,…
Confused by .NET LTS vs STS? See the release calendar, support windows, and a decision framework for picking…