C#C
C#4y ago
riazuezra

✅ Difference between [DataType(DataType.EmailAddress)] and [EmailAddress] data annotations?

Can anyone let me know what's the difference between [DataType(DataType.EmailAddress)] and [EmailAddress] data annotations? Using the former alone is not validating the email field so what's it's purpose? Thanks
Was this page helpful?