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.mdreferences/framework-guidance.mdreferences/linq-guidance.mdreferences/security-review-map.mdreferences/performance-review-map.mdreferences/official-sources.mdreferences/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();