Use this skill when the task involves Entity Framework Core models, DbContext, migrations, LINQ queries, change tracking, database providers, performance tuning, or data access review in .NET projects.
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Use this skill when the task involves Entity Framework Core models, DbContext, migrations, LINQ queries, change tracking, database providers, performance tuning, or data access review in .NET projects.
compatibility
Supports .NET 6.0 through 10.0 environments. Compatible with SQL Server, PostgreSQL, MySQL, and SQLite.
metadata
{"version":"1.0.0","category":"Framework"}
EF Core Expert Skill
Trigger On
The user requests database modeling, writing Linq queries, or handling database migrations.
The project contains a DbContext class or references the Microsoft.EntityFrameworkCore package.
There is a need to optimize database access performance or solve N+1 query problems.
The task involves complex data relationship design (one-to-many, many-to-many, inheritance mapping).
Workflow
Perceive (Model Awareness):
Check .csproj to identify the EF Core version and database provider.
Analyze DbContext and entity configurations to confirm whether the Fluent API pattern is adopted.
Identify the current state of Migrations.
Reason (Planning Phase):
Evaluate whether queries need .AsNoTracking() or .AsSplitQuery().
Determine whether custom interceptors are needed to handle audit fields.
Evaluate whether to use ExecuteUpdate/Delete (.NET 7+) for massive data updates.