ef-core

Review C# Entity Framework Core code for best practices and improvements.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/Cripacx/agentic-dotnet --skill ef-core-cripacx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ef-core
Source: https://github.com/Cripacx/agentic-dotnet/tree/main/skills/ef-core
Command: npx skills add https://github.com/Cripacx/agentic-dotnet --skill ef-core-cripacx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers adhere to best practices when using Entity Framework Core, ensuring more efficient, maintainable, and secure data access in .NET applications.

Core Features & Use Cases

  • DbContext Design: Guidance on creating focused and injectable DbContexts.
  • Entity Design: Best practices for defining entities, relationships, and validations.
  • Performance Optimization: Techniques like AsNoTracking(), pagination, and projection.
  • Migrations Management: Strategies for creating and verifying migrations.
  • Querying & Change Tracking: Efficient querying and saving patterns.
  • Security & Testing: Recommendations for secure coding and effective testing.
  • Use Case: Reviewing a new EF Core data model to ensure it follows performance and maintainability guidelines before implementation.

Quick Start

Review my C# code for Entity Framework Core best practices and suggest improvements.

Frequently Asked Questions about ef-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for designing a DbContext in Entity Framework Core?

Entity Framework Core DbContext best practices involve creating focused and injectable DbContexts. This design approach ensures efficient data access layers and improves the maintainability of your .NET applications.

How do I optimize Entity Framework Core query performance?

Optimize Entity Framework Core query performance by applying techniques like AsNoTracking(), pagination, and projection. These methods reduce memory overhead and ensure efficient data retrieval in .NET.

How should I manage Entity Framework Core migrations?

Manage Entity Framework Core migrations by using established strategies for creating and verifying migrations. Proper migration management ensures your database schema stays synchronized with your entity models securely.

Can I use this to review my C# code for Entity Framework Core data models?

You can review C# code for Entity Framework Core data models to ensure they follow performance and maintainability guidelines. This includes validating entity design, relationships, and data access patterns before implementation.

What is the best way to handle change tracking in Entity Framework Core?

The best way to handle change tracking in Entity Framework Core is using efficient querying and saving patterns. Proper change tracking ensures secure and maintainable data context updates without unnecessary performance overhead.