efcore-patterns
Architectural patterns for Entity Framework Core in .NET applications.
Install
mkdir -p .claude/skills/efcore-patterns && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15654" && unzip -o skill.zip -d .claude/skills/efcore-patterns && rm skill.zipInstalls to .claude/skills/efcore-patterns
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Entity Framework Core patterns for ASP.NET Zero (DbContext, repositories, migrations)Key capabilities
- →Register new entities by adding DbSet properties to DbContext
- →Configure entity properties and relationships using Fluent API
- →Create database migrations for schema changes
- →Implement custom repositories for complex queries when IRepository<T> is insufficient
- →Apply migrations to the database in development and production environments
- →Ensure business logic is not placed in repositories
How it works
The skill provides patterns for integrating Entity Framework Core within ASP.NET Zero, covering DbSet registration, entity configuration, and migration creation. It also guides on custom repository implementation and migration application.
Inputs & outputs
When to use efcore-patterns
- →Creating EF Core migrations
- →Configuring custom repositories
- →Managing DbContext structures
- →Implementing entity configurations
About efcore-patterns
Provides implementation patterns for DbSet registration, entity configuration, and custom repository creation within ASP.NET Zero framework environments.
Entity Framework Core patterns for ASP.NET Zero (DbContext, repositories, migrations)
When not to use it
- →When the user wants to put business logic in repositories
- →When the user wants to access DbContext directly from the Application layer
- →When the user wants to use data annotations on entities instead of Fluent API for configuration
Limitations
- →Never put business logic in repositories
- →Custom repos inherit from CadentManagementRepositoryBase<TEntity>
- →Never access DbContext from Application layer
How it compares
This skill offers specific EF Core patterns tailored for the ASP.NET Zero framework, ensuring compatibility and adherence to its architectural conventions, unlike general EF Core guidance.
Compared to similar skills
efcore-patterns side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| efcore-patterns (this skill) | 0 | 2mo | Review | Intermediate |
| azure-resource-manager-postgresql-dotnet | 1 | 3mo | Review | Intermediate |
| azure-resource-manager-sql-dotnet | 1 | 3mo | Review | Intermediate |
| appsettings | 0 | 4mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
azure-resource-manager-postgresql-dotnet
microsoft
Azure PostgreSQL Flexible Server SDK for .NET. Database management for PostgreSQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "PostgreSQL", "PostgreSqlFlexibleServer", "PostgreSQL Flexible Server", "Azure Database for PostgreSQL", "PostgreSQL database management", "PostgreSQL firewall", "PostgreSQL backup", "Postgres".
azure-resource-manager-sql-dotnet
microsoft
Azure Resource Manager SDK for Azure SQL in .NET. Use for MANAGEMENT PLANE operations: creating/managing SQL servers, databases, elastic pools, firewall rules, and failover groups via Azure Resource Manager. NOT for data plane operations (executing queries) - use Microsoft.Data.SqlClient for that. Triggers: "SQL server", "create SQL database", "manage SQL resources", "ARM SQL", "SqlServerResource", "provision Azure SQL", "elastic pool", "firewall rule".
appsettings
punk-link
Rules for modifying ASP.NET Core configuration files (appsettings*.json) in the Warp project. Use when: adding, removing, or changing any configuration key in appsettings files; creating new Options classes that bind to configuration; the user mentions 'appsettings', 'configuration', 'options', 'con
efcore-migrations
thecaaz
**WORKFLOW SKILL** — EF Core migrations workflow for backend model changes: generate, review, and apply EF Core migrations using the repository's README guidance. Agents MUST NOT hand-edit migration code — migrations must be generated with the `dotnet ef migrations add` tool.
dotnet-architect
sickn33
Expert .NET backend architect specializing in C#, ASP.NET Core, Entity Framework, Dapper, and enterprise application patterns. Masters async/await, dependency injection, caching strategies, and performance optimization. Use PROACTIVELY for .NET API development, code review, or architecture decisions.
dotnet-backend-patterns
wshobson
Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.