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
Dipankar BiswasPosted Jul 31, 2014, 11:26 AM
*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.
Guest UserPosted Jul 31, 2014, 6:27 AM
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