What is Data Annotations Extensions?

Data Annotations Extensions MVC C# Visual Studio Data Annotations extensions are for model validation, both on client and server-side. Well, these are great if you’re looking for something simple and fast. Don’t use them if you’re working on a project with many fields and dependencies. If you’re doing complex validation, I would highly recommend writing customContinue reading “What is Data Annotations Extensions?”

Advertisements

How to use Data Annotations?

Interesting snippet from C#, ASP.NET and MVC, that uses the ValidationAttribute Ever wanted to add validation to your MVC view, well look further for more details. The ValidationAttribute will help you validate your model and server-side properties. As a programmer, you will need to add certain rules or attributes to the properties, such as required,Continue reading “How to use Data Annotations?”