ef-core
Entity Framework Core best practices guide covering design, performance, security, and testing patterns.
What it does
- 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
- Use meaningful primary keys (consider natural vs surrogate keys)
- Implement proper relationships (one-to-one, one-to-many, many-to-many)
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
Entity Framework Core best practices guide covering design, performance, security, and testing patterns.
Source
Repository: https://github.com/github/awesome-copilot
ef-core FAQ
What does the ef-core skill do?
Get best practices for Entity Framework Core Keep DbContext classes focused and cohesive Use constructor injection for configuration options
How do I install ef-core?
Run: npx -y skills add https://github.com/github/awesome-copilot --skill ef-core --agent claude-code — the source lives at github.com/github/awesome-copilot.
Maintain ef-core?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/github-awesome-copilot-ef-core?ref=badge) npx agentictools info skills/github-awesome-copilot-ef-core The second line is the CLI lookup for this page — handy in READMEs and docs.