
Description
ef-core is an agent skill from the github/awesome-copilot collection that gives best practices for Entity Framework Core, the .NET data access library. It covers eight areas: DbContext design, entity modeling, performance optimization, migrations, querying strategies, change tracking, security and testing. On the context, it recommends keeping each DbContext focused and cohesive, injecting configuration options through the constructor, configuring the model in OnModelCreating with the fluent API, and separating entity configurations into their own IEntityTypeConfiguration classes. It suggests a DbContextFactory for console apps and tests. For entities it advises meaningful primary keys, a clear choice between natural and surrogate keys, proper relationships, constraints and validations set through annotations or the fluent API, and owned entity types for value objects. The rest of the skill covers avoiding slow queries, managing migrations safely, and keeping the change tracker lean. It is useful for developers writing or reviewing data access code in .NET, and for teams who want a shared standard. The guidance is general, so the advice on performance and migrations should be checked against the database and the data volumes of the actual application. The skill is installed with the skills CLI from the github/awesome-copilot repository. Its skills.sh page showed about 9.6K installs and passing results from three security audits at the time of the scan.…
Highlights
- DbContext design and factory pattern
- Entity modeling with keys, relationships and owned types
- Performance, migrations and query guidance
- Change tracking and security
- Testing approaches
- Installs with the skills CLI
Ratings & Reviews
No ratings yet
Be the first to rate ef-core.
People also visit

creating-oracle-to-postgres-master-migration-plan
Discovers all projects in a .NET solution

creating-oracle-to-postgres-migration-integration-tests
Creates integration test cases targeting Oracle for .NET data access artifacts

csharp-nunit
NUnit best practices for standard and data-driven unit testing in .NET projects
ef-core FAQ
What areas does it cover?
DbContext design, entity modeling, performance, migrations, querying, change tracking, security and testing.
How should configuration be set up?
The skill recommends configuring the model in OnModelCreating and separating entity configurations into IEntityTypeConfiguration classes.
When is a DbContextFactory used?
The skill suggests it for console apps and tests.
Does the advice fit every database?
It is general. Performance and migration advice should be checked against the actual database and data volumes.
How do I install it?
Run npx skills add https://github.com/github/awesome-copilot --skill ef-core.
What security audits does it have?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best ef-core alternatives?
Popular alternatives to ef-core include aspire, creating-oracle-to-postgres-master-migration-plan and creating-oracle-to-postgres-migration-integration-tests. See all ef-core alternatives





