/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

www.darrenhorrocks.co.uk
| | blog.codefarm.me

Model validation is a crucial aspect of building robust ASP.NET Core applications, ensuring data integrity and providing a smooth user experience. This post explores the various mechanisms for validating data, from built-in attributes and custom validation logic to handling non-nullable reference types and top-level node validation. 1. Model state 2. Validation 3. Validation attributes 4. Error messages 5. Non-nullable reference types and [Required] attribute 6. Custom attributes 7. Refereces 1. Model state Model state represents data binding and validation errors that occur before action execution, which web apps typically handle by redisplaying pages, while ApiController-decorated Web APIs automatically return a 400 response. [ApiController] [Route("api/[c...
4.2 parsecs

Travel
| |
| | damienbod.com

This post implements a basic ASP.NET Core API using .NET 9 and the Microsoft OpenAPI implementation. The OpenAPI Nuget package supports both Controller based APIs and minimal APIs. Until now, we used excellent solutions like NSwag to produce the API schemas which can be used to auto-generate client code. Code: https://github.com/damienbod/WebApiOpenApi Setup A .NET 9...
3.5 parsecs

Travel
| |
| | www.kallemarjokorpi.fi

I gathered to this blog post a list of external libraries that I usually add to a greenfield .NET API project.
3.9 parsecs

Travel
| |
| | github.com

Render sequence diagrams from text - the @zenuml/core engine behind ZenUML. Try it live. - zenuml-core/e2e/fixtures/reorder-message.html at main · mermaid-js/zenuml-core
19.8 parsecs

Travel
|