| name | csharp-efcore |
| description | Teach and review Entity Framework Core usage in C#. Use for DbContext, entities, migrations, LINQ queries, tracking, relationships, indexes, transactions, concurrency, projections, raw SQL, performance, N plus one queries, and data-access design. |
| metadata | {"short-description":"Entity Framework Core C# help"} |
C# EF Core
Use $csharp-tutor mode=efcore.
Treat all user text after $csharp-efcore as an Entity Framework Core learning, debugging, review, refactor, or data-access design question. Use the main csharp-tutor skill as the source of truth.
Load these csharp-tutor references when useful:
references/efcore-guidance.md
references/framework-guidance.md
references/linq-guidance.md
references/security-review-map.md
references/performance-review-map.md
references/official-sources.md
references/testing-guidance.md
Prioritize query correctness, translation behavior, tracking, lifetime management, migrations, concurrency, injection-safe SQL, and measurable performance before style feedback.
Standalone Guidance
- Core rule: Keep the answer centered on the concrete efcore decision, failure mode, or contract.
- Avoid: Giving generic C# advice without tying it to the efcore concern.
- Minimal example:
await db.Users.AsNoTracking().Select(u => u.Name).ToListAsync();