efcore-patterns

Apply standardized EF Core 8 patterns for data access in .NET applications.

1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/roberflo/claude-csharp --skill efcore-patterns-roberflo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: efcore-patterns
Source: https://github.com/roberflo/claude-csharp/tree/main/skills/efcore-patterns
Command: npx skills add https://github.com/roberflo/claude-csharp --skill efcore-patterns-roberflo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standardizes and accelerates the implementation of Entity Framework Core 8 data access patterns across .NET applications, reducing boilerplate and promoting best practices.

Core Features & Use Cases

  • DbContext configuration and entity mappings to enforce consistent data models.
  • Common query patterns including projection, no-tracking, and split queries to optimize performance.
  • Repository pattern support, migrations guidance, and bulk operations for production-grade data access.

Quick Start

Review and apply the included EF Core 8 patterns to bootstrap your project's data layer.

Frequently Asked Questions about efcore-patterns

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

FAQPage Schema
What's the best way to implement the repository pattern with EF Core 8?▼

The repository pattern with EF Core 8 abstracts data access by centralizing DbContext operations, reducing boilerplate, and enforcing consistent query logic. It supports standardized configurations, projections, and bulk operations for production-grade data access.

How do I optimize EF Core 8 queries for better performance?▼

EF Core 8 query optimization uses no-tracking queries for read-only data, projections to select only necessary columns, and split queries to prevent cartesian explosion. These patterns reduce memory overhead and improve database response times across applications.

How do I configure DbContext and entity mappings in EF Core 8?▼

Configuring DbContext and entity mappings in EF Core 8 involves applying standardized patterns to enforce consistent data models. This setup accelerates implementation, reduces boilerplate, and ensures reliable data access across typical projects.

When should I use split queries in Entity Framework Core?▼

Split queries in Entity Framework Core should be used when fetching related collections to avoid cartesian explosion. By splitting a single query into multiple, it prevents large intermediate result sets and reduces memory consumption during complex joins.

How do I handle soft delete and bulk operations in EF Core 8?▼

Soft delete and bulk operations in EF Core 8 are handled by applying standardized data access patterns. Soft delete filters out deleted records globally, while bulk operations process large datasets efficiently, minimizing boilerplate and promoting best practices.