dev-dotnet-efcore

Optimize Entity Framework Core data access by detecting N+1 queries and refining migrations.

7|3|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/eriklieben/agentic-dev-workflow --skill dev-dotnet-efcore
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dev-dotnet-efcore
Source: https://github.com/eriklieben/agentic-dev-workflow/tree/main/.claude/skills/dev-dotnet-efcore
Command: npx skills add https://github.com/eriklieben/agentic-dev-workflow --skill dev-dotnet-efcore

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses performance bottlenecks, inefficient database queries, and common anti-patterns in Entity Framework Core applications, ensuring your data access layer is both scalable and maintainable.

Core Features & Use Cases

  • Query Optimization: Provides actionable checklists for N+1 detection, eager loading, and client-side evaluation fixes.
  • Performance Tuning: Offers guidance on compiled queries, split queries, and bulk operations to handle high-load scenarios.
  • Migration & Schema Management: Best practices for generating idempotent migrations and managing database schema changes safely.

Quick Start

Analyze the current database context and identify potential N+1 query patterns or missing indexes in the project.

Frequently Asked Questions about dev-dotnet-efcore

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix N+1 query problems in Entity Framework Core?

To fix N+1 query problems in EF Core, you need to identify missing eager loading patterns and implement efficient loading strategies. This skill provides actionable checklists for detecting N+1 queries and applying proper eager loading to optimize data access.

What is the best way to optimize EF Core performance for high-load scenarios?

The best way to optimize EF Core performance is by implementing compiled queries, split queries, and bulk operations. This skill provides guidance on these performance tuning techniques to ensure production-grade database efficiency under high load.

How do I manage database migrations safely in .NET applications?

To manage database migrations safely in .NET, you should generate idempotent migrations and follow best practices for schema changes. This skill offers guidance on refining database migrations to ensure robust and maintainable schema management.

When do I need split queries in Entity Framework Core?

You need split queries in EF Core when handling large result sets with multiple related collections to avoid cartesian explosion. This skill guides you on implementing split queries and configuring SQL logging to ensure production-grade database efficiency.

Does this EF Core optimization guidance apply to my C# .NET project?

Yes, this EF Core optimization guidance applies directly to C#/.NET development environments requiring high-performance database interactions. It addresses change tracking and data access patterns specific to your .NET stack.