I am working on WPF application which uses Entity Framework alongwith POCO classes. I would like to use data annotations with POCO classes for Client side validations in UI (WPF). Since, I can’t modify the POCO classes (it will be regenerated after updating the entity model), therefore, I have implemented the data annotations using partial class as per approach mentioned in the article: http://www.asp.net/mvc/tutorials/validation-with-the-data-annotation-validators-cs under section “Using Data Annotation Validators with the Entity Framework”. Somehow this approach is not working in my case. Can anybody suggest something as to how can I use data annotation with Entity Framework?
I am working on WPF application which uses Entity Framework alongwith POCO classes. I
Share
There is no need to registered the Data Annotations. Just followed the steps mentioned in the article & its working now.