web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Nishant Rana’s Weblog / FluentValidation – build st...

FluentValidation – build strongly-typed validation rules in .NET

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee
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 reading "FluentValidation – build strongly-typed validation rules in .NET"

This was originally posted here.

Comments

*This post is locked for comments