开发者

silverlight-4.0 INotifyDataErrorInfo with Entity Framework

开发者 https://www.devze.com 2023-04-08 08:47 出处:网络
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 INotifyData

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消