/MvcCoreCustomModelValidation_Demo

This article explain how to create custom model validation in ASP.net core. We have model validation in System.ComponentModel.DataAnnotations namespace. Validation attributes let you specify validation rules for model properties. We can create custom validation attributes, create a class that inherits from ValidationAttribute, and override the IsValid method.

Primary LanguageC#

Watchers