efcore-patterns

Standardize EF Core entity configurations and migrations for ABP Framework projects.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/alexsandrocruz/DominusLeads --skill efcore-patterns-alexsandrocruz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: efcore-patterns
Source: https://github.com/alexsandrocruz/DominusLeads/tree/main/backend/Sapienza.Leads/.claude/skills/efcore-patterns
Command: npx skills add https://github.com/alexsandrocruz/DominusLeads --skill efcore-patterns-alexsandrocruz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill standardizes EF Core patterns for ABP Framework projects, reducing boilerplate and ensuring consistency across domains.

Core Features & Use Cases

  • Entity Base & Auditing: Standard base classes and auditing properties for ABP aggregates.
  • Fluent API & Migrations: Centralized configuration for entities, relationships, and migrations with PostgreSQL optimization.
  • Performance & Patterns: Batch operations, split queries, compiled queries, and common performance patterns tailored for ABP + EF Core.
  • Use Case: Imagine a monolithic ABP app needing consistent EF Core patterns across multiple bounded contexts; apply these templates to accelerate development and ensure maintainability.

Quick Start

To begin, review the recommended EF Core base classes, copy the provided entity configuration templates, and adapt them to your domain models. Then run the migration script to generate the initial schema and apply it to your PostgreSQL database.

Frequently Asked Questions about efcore-patterns

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

FAQPage Schema
How do I configure EF Core entities for ABP Framework using Fluent API?

To configure EF Core entities for ABP Framework, apply centralized Fluent API conventions to standardize base classes, auditing properties, and relationships. This enforces consistency across bounded contexts and reduces boilerplate.

What is the best way to manage EF Core migrations with PostgreSQL in ABP?

Managing EF Core migrations with PostgreSQL in ABP involves using centralized configuration templates and running migration scripts to generate the initial schema, ensuring PostgreSQL-optimized patterns are applied consistently.

How do I reduce EF Core boilerplate across multiple ABP bounded contexts?

Reduce EF Core boilerplate across ABP bounded contexts by adopting standardized base classes, entity configuration templates, and performance-oriented patterns like compiled queries and split queries for maintainability.

Does this EF Core ABP pattern support batch operations and split queries?

Yes, the EF Core ABP pattern supports performance-oriented features including batch operations, split queries, and compiled queries, providing ready-to-use templates tailored for ABP and PostgreSQL environments.

When do I need ABP-compatible base classes for EF Core entity configuration?

You need ABP-compatible base classes for EF Core entity configuration when developing monolithic ABP apps or managing multiple bounded contexts, ensuring auditing properties and domain model consistency.

What are the limitations of using standard EF Core patterns without ABP conventions?

Without ABP conventions, standard EF Core patterns lack centralized auditing, enforced base classes, and PostgreSQL-specific optimizations, increasing boilerplate and risking inconsistency across bounded contexts.