Domain Validation With .NET | Clean Architecture, DDD, .NET 6

πŸ“Œ Accelerate your Clean Architecture skills: πŸš€ Support me on Patreon to access the source code: I will show you two ways to approach Domain validation with .NET. The first approach will be based on throwing exceptions, and the second approach will be based on returning a result object. We will be using some interesting .NET features to make this all work. Which validation approach you choose will depend on your use case in the end. Join my weekly .NET newsletter: Subscribe for more: Chapters 0:00 What are our options? 0:40 Throwing Exceptions 3:39 Pros and cons - Exceptions 4:46 Result object 10:24 Pros and cons - Result object 11:38 What is your choice?
Back to Top