silverlight-4.0 INotifyDataErrorInfo with Entity Framework
I am using EF 4.0 with Silverlight 4.0. I wanted to validate my Entity using INotifyDataErrorInfo. For that do I need to create duplicate class on clien开发者_开发知识库tside and implement INotifyDataErrorInfo ? I can not Implement it on autogenerated Entity as entity gets updated when my datasource changes. So How should I do with this ?
You can't do that, because INotifyDataErrorInfo
is Silverlight only:
http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifydataerrorinfo(v=vs.95).aspx
you will have to create separate properties and validate those.
精彩评论