Best Practices - Data Annotations vs OnChanging in Entity Framework 4
- by jptacek
I was wondering what the general recommendation is for Entity Framework in terms of data validation. I am relatively new to EF, but it appears there are two main approaches to data validation.
The first is to create a partial class for the model, and then perform data validations and update a rule violation collection of some sort. This is…