Skip to content
E

efcore-patterns

Entity Framework Core best practices including NoTracking by default

by aarononthewebFree

#7871in AI Skills
0In stores

Description

NET projects. NET Aspire, and debugging change tracking problems. Its core principles start with NoTracking by default, because most queries…

Highlights

  • NoTracking by default for read-only queries
  • Query splitting for navigation collections
  • Migration management and a dedicated migration service
  • ExecutionStrategy for transient retries
  • Guidance for .NET Aspire integration

Ratings & Reviews

No ratings yet

Be the first to rate efcore-patterns.

People also visit

E

ef-core

Entity Framework Core best practices guide covering design, performance

AI Skills
Get
E

ef-core

Entity Framework Core patterns for .NET 10

AI Skills
Get
M

migrate

Guided, safe migration workflow covering EF Core schema migrations

AI Skills
Get
O

optimizing-ef-core-queries

Review and optimize application data access that uses Entity Framework Core

AI Skills
Get
D

dotnet-patterns

Idiomatic C# and .NET patterns, conventions, dependency injection, async/await

AI Skills
Get
D

dotnet-backend-patterns

Production-grade C#/.NET patterns for APIs, MCP servers

AI Skills
Get

efcore-patterns FAQ

When should I use it?

When setting up EF Core in a new project, optimising queries, managing migrations, integrating with .NET Aspire, or debugging change tracking.

What is the NoTracking default?

Most queries are read-only, so the skill recommends NoTracking and opting in to tracking when you need to change entities.

How should I handle migrations?

Never edit migration files by hand. Use the CLI commands, and run migrations from a dedicated migration service rather than at application startup.

How do I save changes when using NoTracking?

Explicitly mark the entities for update before saving, since the context is not tracking them.

What does query splitting solve?

Loading several navigation collections efficiently, instead of one large query.

What are the best efcore-patterns alternatives?

Popular alternatives to efcore-patterns include ef-core, ef-core and migrate. See all efcore-patterns alternatives

Developer Stuff

Badges