Enterprise C# 13 development with .NET 9, async/await, LINQ, Entity Framework Core, ASP.NET Core, and Context7 MCP integration for modern backend and enterprise applications.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Instruções da origem · Visualização somente leitura
name
moai-lang-csharp
version
4.0.0
created
2025-11-11T00:00:00.000Z
updated
2025-11-12T00:00:00.000Z
status
stable
description
Enterprise C# 13 development with .NET 9, async/await, LINQ, Entity Framework Core, ASP.NET Core, and Context7 MCP integration for modern backend and enterprise applications.
Enterprise C# 13 development featuring async/await for modern concurrency, LINQ for powerful data queries, Entity Framework Core for ORM, ASP.NET Core for web applications, and production-ready patterns for scalable backend services. Context7 MCP integration provides real-time access to official C#/.NET documentation.
Key capabilities:
✅ C# 13 with async/await and modern syntax
✅ Advanced async/await patterns and Task management
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/users/{id}", async (int id, ApplicationDbContext db) =>
await db.Users.FindAsync(id) is User user
? Results.Ok(user)
: Results.NotFound());
app.Run();
Level 3: Advanced Topics
Async Best Practices
Prefer async/await over Task.Run for I/O
Use ConfigureAwait(false) in library code
Handle exceptions with try-catch around await
Use CancellationToken for cancellation support
Avoid Task.Result and Task.Wait() (deadlock risk)
LINQ Optimization
Filter early: Apply Where before Select
Project late: Select only needed fields at end
Use AsNoTracking(): For read-only queries
Avoid N+1 queries: Use Include for relationships
Defer execution: Chain queries before ToList()
Performance Patterns
Connection pooling: EF Core handles automatically
Batch operations: Group saves before SaveChangesAsync()
Lazy loading: Avoid loading unnecessary data
Caching: Implement for frequently accessed data
Parallel processing: Use Task.WhenAll for independent operations
Security Patterns
Input validation: Always validate user input
Parameterized queries: EF Core prevents SQL injection
Authentication: Implement JWT or OAuth2
Authorization: Check permissions before operations
Encryption: Protect sensitive data at rest and in transit