Skip to content

Phở Founder Lifetime: $59 once, 1 year of Phở AI included. Limited seats. See the offer

Engineering · Skill

.NET Backend Development Patterns

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.

Open in Phở

What the skill covers

The sections of its instructions, in order.

  1. 01 When to Use This Skill
  2. 02 Core Concepts
  3. 1. Project Structure (Clean Architecture)
  4. 2. Dependency Injection Patterns
  5. 3. Async/Await Patterns
  6. 4. Configuration with IOptions
  7. 5. Result Pattern (Avoiding Exceptions for Flow Control)
  8. 03 Data Access Patterns
  9. Entity Framework Core
  10. Dapper for Performance
  11. 04 Caching Patterns
  12. Multi-Level Cache with Redis
  13. 05 Testing Patterns
  14. Unit Tests with xUnit and Moq
  15. Integration Tests with WebApplicationFactory
  16. 06 Best Practices
  17. DO
  18. DON'T
  19. 07 Common Pitfalls

Reference files

4 files Phở can open while it uses the skill.

  • assets/repository-template.cs
  • assets/service-template.cs
  • references/dapper-patterns.md
  • references/ef-core-best-practices.md

More in Backend architecture

  • Architecture Patterns

    Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing clean architecture…

  • CQRS Implementation

    Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced…

  • Event Store Design

    Design and implement event stores for event-sourced systems. Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence…

  • Microservices Patterns

    Design microservices architectures with service boundaries, event-driven communication, and resilience patterns. Use when building distributed systems, decomposing monoliths, or…

  • Projection Patterns

    Build read models and projections from event streams. Use when implementing CQRS read sides, building materialized views, or optimizing query performance in event-sourced systems.

  • Saga Orchestration

    Implement saga patterns for distributed transactions and cross-aggregate workflows. Use this skill when implementing distributed transactions across microservices where 2PC is…

  • Temporal Python Testing Strategies

    Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when…

  • Workflow Orchestration Patterns

    Design durable workflows with Temporal for distributed systems. Covers workflow vs activity separation, saga patterns, state management, and determinism constraints. Use when…

  • FastAPI Project Templates

    Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up…

  • Authentication & Authorization Implementation Patterns

    Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth…

  • Error Handling Patterns

    Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when…

  • SQL Optimization Patterns

    Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries…

  • Node.js Backend Patterns

    Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best…

  • PostgreSQL Table Design

    Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features

  • Database Migration

    Execute database migrations across ORMs and platforms with zero-downtime strategies, data transformation, and rollback procedures. Use when migrating databases, changing schemas…

Similar engineering skills

Frequently asked questions

What does .NET Backend Development Patterns do?

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.

Is .NET Backend Development Patterns free to use?

Yes. .NET Backend Development Patterns is published by Seth Hobson under the MIT licence, and you can use it with a free Phở account.

How do I use .NET Backend Development Patterns in Phở?

Press Open in Phở, then Try to apply it to your next message, or add the Backend architecture set so Phở loads it whenever a request matches.

Does .NET Backend Development Patterns need other tools?

No. It works in a normal Phở chat with what you type or upload.

Copied unchanged from wshobson/agents at commit 7e2fb55 and credited to Seth Hobson, who is not affiliated with Phở. The full instructions and licence text ship with the skill inside Phở.