dotnet-backend-patterns

Consolidate .NET backend patterns for API architecture with EF Core and Dapper.

Updated Nov 15, 2025
One-click install
npx skills add https://github.com/HongQuan78/Chatty.BE --skill dotnet-backend-patterns-hongquan78
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-backend-patterns
Source: https://github.com/HongQuan78/Chatty.BE/tree/main/.agents/skills/dotnet-backend-patterns
Command: npx skills add https://github.com/HongQuan78/Chatty.BE --skill dotnet-backend-patterns-hongquan78

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill consolidates best-practice .NET backend patterns to help teams standardize API architecture, reduce boilerplate, and accelerate delivery of robust services.

Core Features & Use Cases

  • Provides a Clean Architecture project skeleton with Domain, Application, Infrastructure, and Api layers.
  • Demonstrates Dependency Injection, Async/Await patterns, and IOptions-based configuration.
  • Compares EF Core and Dapper usage, plus advanced patterns like Unit Of Work, Specifications, Repositories, and testing templates.

Quick Start

Create a starter backend pattern project following the recommended architecture and plug in your domain models, DI registrations, and EF Core or Dapper data access.

Frequently Asked Questions about dotnet-backend-patterns

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

FAQPage Schema
How do I structure a .NET backend using Clean Architecture layers?

Structure a .NET backend using Clean Architecture by separating Domain, Application, Infrastructure, and Api layers. This skeleton standardizes API architecture, reduces boilerplate, and accelerates delivery of robust services.

What is the best way to compare EF Core and Dapper for data access?

Compare EF Core and Dapper by evaluating their usage within advanced patterns like Repositories and Unit Of Work. This approach demonstrates how to balance robust ORM features with lightweight query performance.

How do I implement dependency injection and async operations in dotnet backend patterns?

Implement dependency injection and async operations in dotnet backend patterns by registering services across Application and Infrastructure layers. This ensures scalable architecture and robust async API development.

Can I use IOptions configuration patterns in an enterprise-grade .NET API?

IOptions configuration patterns are fully supported in enterprise-grade .NET APIs. They integrate directly into the Clean Architecture skeleton to provide strongly-typed configuration across Domain and Application layers.

When do I need the Unit of Work and Repository patterns in scalable .NET architecture?

You need Unit of Work and Repository patterns in scalable .NET architecture when managing complex data transactions across EF Core or Dapper. These patterns consolidate best-practice data access and maintain consistency.

Does this .NET backend patterns approach include testing templates for robust API development?

This .NET backend patterns approach includes testing templates for robust API development. These templates integrate with the Clean Architecture layers to ensure scalable architecture and reliable dependency injection.