- Home
- .NET tutorials
.NET tutorials
The simplest way to secure a Minimal API (With Swagger)
Secure your .NET Minimal API quickly using API key authentication, with full Swagger support for testing and protecting endpoints.
Validate .NET configuration on startup
Learn how to validate .NET configuration on startup using data annotations or FluentValidation, so your app fails fast and never ships with broken config.
EF Core transactions: Stop your data getting out of sync
Learn how Entity Framework Core transactions prevent data inconsistencies and how isolation levels affect behaviour in your applications.Why your Entity Framework Core app needs query filters
Discover how EF Core query filters enforce global rules, simplify multitenancy, and clean up queries to stop sensitive data leaking into production.
C# class types explained with examples
Learn the different C# class types with clear examples, common compiler errors, and explanations of abstract, sealed, static, partial, unsafe, and record classes.
Minimal APIs: Fix missing OpenAPI response documentation
Learn why Minimal APIs often miss OpenAPI response types and how to fix missing 404, 400, and 500 responses using TypedResults and Produces methods.
How to secure ASP.NET Core APIs with Basic Authentication
Learn how to implement Basic Authentication in ASP.NET Core Web APIs with Minimal APIs and controllers, ideal for securing internal APIs.
Swagger's missing in .NET 10 - How to add it back
Swagger is missing in .NET 10. Learn why it was removed, how to add it back, and explore alternatives like Scalar, Redoc, Postman, and .http files.