Backend Conventions (.NET 10 / C# 13)

Document backend conventions for .NET 10 and C# 13 projects.

1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/Emmanuelkwaa/NetRockTemplate --skill backend-conventions-net-10-c-13-emmanuelkwaa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Backend Conventions (.NET 10 / C# 13)
Source: https://github.com/Emmanuelkwaa/NetRockTemplate/tree/main/.claude/skills/backend-conventions
Command: npx skills add https://github.com/Emmanuelkwaa/NetRockTemplate --skill backend-conventions-net-10-c-13-emmanuelkwaa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to the established conventions and best practices for developing the .NET backend within the NetRockTemplate project, ensuring consistency, maintainability, and efficiency.

Core Features & Use Cases

  • Project Structure: Outlines the standard directory layout for backend projects.
  • Coding Standards: Details C# conventions for access modifiers, nullability, collections, and time handling.
  • Entity & EF Core: Guides on defining entities, using BaseEntity, and configuring Entity Framework Core, including migrations and seeding.
  • Result Pattern & Services: Explains the use of the Result pattern for error handling and the service layer pattern for business logic implementation.
  • Authorization & Permissions: Covers the permission system, role hierarchy, and authorization attributes.
  • Testing & Caching: Details testing strategies across different project types and caching mechanisms.

Quick Start

Consult the Backend Conventions skill for guidance on implementing new features in the .NET backend.

Frequently Asked Questions about Backend Conventions (.NET 10 / C# 13)

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

FAQPage Schema
How do I structure a .NET 10 backend project for maintainability?

Standardize your .NET 10 backend project structure by following established directory layouts. This ensures consistency across features by defining where entities, services, controllers, and configurations reside within the project.

What is the Result pattern in C# 13 for error handling?

The Result pattern in C# 13 handles errors without exceptions by returning explicit success or failure objects. This standardizes service layer responses and cleanly propagates error messages to the controller layer.

How do I configure EF Core entities and audit trails in .NET?

Configure EF Core entities by inheriting from BaseEntity and defining mappings. Audit trails are automatically handled by tracking property changes, ensuring data history is maintained without cluttering domain logic.

What are the C# coding standards for collections and nullability?

C# coding standards enforce explicit nullability annotations and prefer immutable collections. Time handling must use consistent standards, preventing common null reference and timezone manipulation errors.

Does this .NET backend convention guide cover authorization and permissions?

Yes, the .NET backend conventions cover authorization by defining a permission system and role hierarchy. It specifies how to apply authorization attributes to secure controllers and service methods effectively.

What testing strategies are recommended for .NET backend services?

Testing strategies for .NET backend services vary by project type, emphasizing unit tests for business logic and integration tests for EF Core configurations. This ensures comprehensive coverage across service implementations.