
Ef Core
This gives Claude a solid foundation in EF Core patterns so it can spot common mistakes in your data access code. It'll catch things like missing AsNoTracking() on read queries, N+1 problems from poor Include usage, and bloated DbContext classes that mix concerns. The skill covers the full stack from entity design and migrations to performance tuning and testing strategies. Most useful when you're building out data layers or reviewing existing EF implementations. It's opinionated about things like using IEntityTypeConfiguration for complex models and DbContextFactory for non-web apps, which aligns well with Microsoft's current guidance.
- skills.sh installs
- 9.7K
- GitHub stars
- 41K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add github/awesome-copilot --skill ef-core --agent claude-codeInstalls into .claude/skills of the current project.
Files
Entity Framework Core Best Practices
Your goal is to help me follow best practices when working with Entity Framework Core.
Data Context Design
- Keep DbContext classes focused and cohesive
- Use constructor injection for configuration options
- Override OnModelCreating for fluent API configuration
- Separate entity configurations using IEntityTypeConfiguration
- Consider using DbContextFactory pattern for console apps or tests
Entity Design
- Use meaningful primary keys (consider natural vs surrogate keys)
- Implement proper relationships (one-to-one, one-to-many, many-to-many)
- Use data annotations or fluent API for constraints and validations
- Implement appropriate navigational properties
- Consider using owned entity types for value objects
Performance
- Use AsNoTracking() for read-only queries
- Implement pagination for large result sets with Skip() and Take()
- Use Include() to eager load related entities when needed
- Consider projection (Select) to retrieve only required fields
- Use compiled queries for frequently executed queries
- Avoid N+1 query problems by properly including related data
Migrations
Sponsors
Details
- Repository
- github.com/github/awesome-copilot
- Categories
- Git & Pull Requests, AI & Agent Building
More from github/awesome-copilot
All 318- Azure Deployment Preflight9.6K
- Write Coding Standards From File9.6K
- My Issues9.6K
- Create Spring Boot Java Project9.6K
- Appinsights Instrumentation9.5K
- Openapi To Application Code9.5K
- Create Github Issues Feature From Implementation Plan9.5K
- Folder Structure Blueprint Generator9.5K
- Power Bi Report Design Consultation9.5K
- Copilot Sdk9.4K
- Azure Role Selector9.4K
- Prompt Builder9.4K
- Next Intl Add Language9.4K
- Project Workflow Analysis Blueprint Generator9.4K
- Java Refactoring Extract Method9.3K
- Breakdown Plan9.3K
- Remember9.3K
- Breakdown Test9.3K
- Add Educational Comments9.3K
- Breakdown Feature Implementation9.2K
- Debian Linux Triage9.2K
- Dataverse Python Advanced Patterns9.2K
- Update Specification9.2K
- Go Mcp Server Generator9.2K