You are probably familiar with the MVC Data Annotations, those attributes that define validations on your model properties.
You can define which properties are required, input max length, custom error messages, custom types and built in regular expressions (like email or phone).
However there not enough data annotations in the framework: you can’t define a property that will be only numeric, or credit card number and more. Yes you can define a custom regular expression but who likes to define them?
Let me introduce the “DataAnnotationsExtensions” – an open source library that gives you more attributes like “Digits” or “CraditCard” and more.