Check out example codes for "asp.net data annotations email". It will help you in understanding the concepts better.

Code Example 1

[DataType(DataType.EmailAddress, ErrorMessage = "E-mail is not valid")]

Learn ReactJs, React Native from akashmittal.com