ef-core-configuration

Generate Entity Framework Core Fluent API configurations for .NET 8+ domain entities.

69|13|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/ronnythedev/dotnet-clean-architecture-skills --skill ef-core-configuration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ef-core-configuration
Source: https://github.com/ronnythedev/dotnet-clean-architecture-skills/tree/main/sample/POS/.claude/skills/06-ef-core-configuration
Command: npx skills add https://github.com/ronnythedev/dotnet-clean-architecture-skills --skill ef-core-configuration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill generates Entity Framework Core configurations using Fluent API to map domain entities to database tables, ensuring consistency and reducing boilerplate.

Core Features & Use Cases

  • Generates IEntityTypeConfiguration<T> classes with ToTable, HasKey, Property, HasIndex, and relationship mappings.
  • Supports one-to-many, many-to-many, and owned types mappings, including value objects and shadow properties where needed.
  • Useful for teams adopting clean architecture and repository patterns, enabling a centralized configuration approach across large domain models.

Quick Start

Run the EF Core configuration generator against your domain model to produce configuration files under src/{name}.infrastructure/configurations.

Frequently Asked Questions about ef-core-configuration

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

FAQPage Schema
How do I generate EF Core Fluent API configurations automatically?

You can auto-generate EF Core Fluent API configurations by running this Skill against your domain model. It produces IEntityTypeConfiguration classes with table, key, property, index, and relationship mappings for .NET 8+ projects.

What is the best way to map domain entities to database tables using EF Core?

Mapping domain entities to database tables is best handled by generating explicit Fluent API configurations. This creates per-entity configuration files enforcing snake_case naming conventions and supporting one-to-many, many-to-many, and owned types.

Does this EF Core configuration generator support clean architecture and repository patterns?

Yes, EF Core configuration generation supports clean architecture and repository patterns by creating per-entity configuration files. It outputs these files under a centralized infrastructure configurations folder for repository-friendly architectures.

Can I use Fluent API configurations for value objects and shadow properties in EF Core?

Yes, Fluent API configurations can map value objects and shadow properties in EF Core. The generator handles owned types mappings and relationship configurations across large domain models.

Do I need .NET 8 to use this EF Core Fluent API configuration generator?

You need .NET 8 or later to use this EF Core Fluent API configuration generator. It targets .NET 8+ projects using EF Core to produce IEntityTypeConfiguration classes with explicit mapping configurations.

Why use explicit Fluent API configurations instead of data annotations for EF Core?

Explicit Fluent API configurations provide centralized mapping for large domain models, enforcing snake_case naming conventions and per-entity files. This approach reduces boilerplate and ensures consistency across repository-friendly architectures.

Related Skills