Menu

1 / 5

This week in Cursor + .NET — 7 rules (week ending November 15, 2026)

DEV Community: dotnet·Agentic Architect·about 7 hours ago
#yvgkezv6
#devtodotnet#devto#dev#rule#cursor
Reading 0:00
15s threshold

Every weekday a single, opinionated rule for senior C#/.NET engineers using Cursor. Here's the full week in one read — canonical posts live on the Agentic Architect blog .

7 daily senior rules

Rule 11: Rethrow, Don't throw ex

Sun 15 Nov

throw ex resets the stack trace. throw preserves it. Cursor gets this wrong about 40 percent of the time when generating catch blocks. Rewrite any naked throw ex to throw unless the exception has been explicitly wrapped.

→ Permalink on the blog

Rule 10: AsNoTracking for Reads

Sat 14 Nov

Every read-only EF Core query should call AsNoTracking. Add a rule that recognises query methods returning DTOs (not entities) and inserts the call. Cursor never does this by default and your read perf degrades silently across releases.

→ Permalink on the blog

Rule 9: Scoped Capture in Singleton

Fri 13 Nov

The single most expensive .NET runtime bug: a Singleton holding a Scoped service. Cursor cheerfully writes this without warning.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.