Install the FluentValidation .NET library for validation. Below is our sample Contact class and its corresponding validator class. The validator class needs to inherit AbstractValidator<Contact> and define the validation rules in the constructor using the RuleFor method. Instantiate the validator class, and pass the object to be validated. Here we have passed incorrect values for … Continue…
Continue Reading Nishant Rana’s Article on their blog
FluentValidation – build strongly-typed validation rules in .NET
Install the FluentValidation .NET library for validation. Below is our sample Contact class and its corresponding validator class. The validator class needs to inherit AbstractValidator and define the validation rules in the constructor using the RuleFor method. Instantiate the validator class, and pass the object to be validated.
Blog Syndicated with Nishant Rana’s Permission
More About This Author
Array
Dyn365CE6 December 2023Enable / Disable (turn on / turn off) multiple cloud flows – Dataverse
Dyn365CE4 December 2023Transitioning from Unmanaged to Managed Solution (Dynamics 365 / Dataverse)
Dyn365CE27 November 2023Failed deleting solution. Solution dependencies exist, cannot uninstall / Remove unmanaged layer– Dynamics 365 / Dataverse
Dyn365CE21 November 2023Enable classic editor for build/release pipelines in Azure DevOps