Overview
Validation library where rules are written in C# with a fluent syntax, such as RuleFor(x => x.Email).EmailAddress(), kept separate from your models.
Strengths
- Readable rules
- Easy to unit test
Drawbacks
- Extra dependency for simple cases
Best for: Request validation in APIs
Validation library where rules are written in C# with a fluent syntax, such as RuleFor(x => x.Email).EmailAddress(), kept separate from your models.
Microsoft's official .NET and C# documentation, with free tutorials and learning paths from a first console app up to cloud apps.
Official ASP.NET Core documentation: minimal APIs, controllers, middleware, authentication and hosting, with tutorials for each.
Microsoft's ORM for .NET. Map C# classes to tables, query with LINQ, and manage schema changes with migrations. Works with SQL Server, PostgreSQL (via Npgsql), SQLite and others.