ef-core-configuration

Generate Entity Framework Core Fluent API configurations for PostgreSQL with snake_case naming.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/spallempati/AI-Studio --skill ef-core-configuration-spallempati
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ef-core-configuration
Source: https://github.com/spallempati/AI-Studio/tree/main/skills/dotnet-infrastructure/ef-core-configuration
Command: npx skills add https://github.com/spallempati/AI-Studio --skill ef-core-configuration-spallempati

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of defining Entity Framework Core database configurations using the Fluent API, ensuring clean domain models and adherence to PostgreSQL conventions.

Core Features & Use Cases

  • Entity Mapping: Generates IEntityTypeConfiguration classes for mapping domain entities to database tables.
  • Fluent API Usage: Promotes Fluent API over attributes for cleaner domain entities.
  • PostgreSQL Conventions: Supports snake_case naming and other PostgreSQL-specific mappings.
  • Relationships & Value Objects: Handles various relationship types (one-to-many, many-to-many, self-referencing) and maps value objects as owned types.

Quick Start

Use the ef-core-configuration skill to generate a basic Entity Framework Core configuration for the 'Product' entity.

Frequently Asked Questions about ef-core-configuration

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

FAQPage Schema
How do I configure Entity Framework Core to map domain entities to PostgreSQL tables?

Entity Framework Core configurations use the Fluent API to map domain entities to PostgreSQL tables, applying snake_case naming conventions and defining relationships, constraints, and property mappings. This approach ensures clean domain models without relying on data annotations.

What is the best way to map value objects and enums in EF Core using Fluent API?

Mapping value objects and enums in EF Core Fluent API is achieved by configuring value objects as owned types and defining specific enum mappings. This ensures complex domain concepts are accurately represented within the database schema using pure Fluent API conventions.

Can I configure soft delete and audit fields using EF Core Fluent API?

Configuring soft delete and audit fields using EF Core Fluent API is fully supported. The configuration generates mappings for audit fields and soft delete properties, allowing domain entities to track modifications and logical deletion without cluttering the domain logic.

How do I set up many-to-many and self-referencing relationships in EF Core Fluent API?

Setting up relationships in EF Core Fluent API involves explicitly configuring one-to-many, many-to-many, and self-referencing connections. This generates precise relational constraints between domain entities, ensuring referential integrity within the PostgreSQL database schema.

Does EF Core Fluent API support JSON columns and outbox messages for PostgreSQL?

EF Core Fluent API supports mapping JSON columns and outbox messages for PostgreSQL configurations. It generates the necessary IEntityTypeConfiguration classes to serialize complex data structures into JSON columns and map outbox pattern implementations correctly.

When should I use EF Core Fluent API over data annotations for database configuration?

Using EF Core Fluent API over data annotations is preferred when you need clean domain entities separated from infrastructure concerns. Fluent API handles complex PostgreSQL mappings like snake_case naming, value objects, and outbox messages without polluting the domain layer with attributes.