What are the benefits of adding validation in entity framework? We usually add validation in UI, business and database level. Why is required to use entity framework?
Anyone can explain in more detail of using validation in entity framework level.
Thanks in Advance.
- Gokul

Guest UserRank #259 · 9.8K reputationPosted Jul 31, 2014, 2:27 AM EDT
So, if you dont put validation at EF then it'll pass some junk data to database. Now either your EF or DB has capability or validation setup to disallow junk / invalid data.
thnx
@sumitjolly
Dipankar BiswasRank #992 · 2K reputationPosted Jul 31, 2014, 7:26 AM EDT
*A Validation server control is used to validate the data of an input control. If the data does not pass validation, it will display an error message to the user.