Skip to main content
Microsoft Silverlight
Home Forums Silverlight Programming WCF RIA Services RIA attribute to ignore a property?
3 replies. Latest Post by Fredrik N on November 10, 2009.
(0)
DeborahK
Member
63 points
46 Posts
11-10-2009 1:41 PM |
Hi guys -
I have a class that has quite a few properties with Enum types. I understand the RIA cannot deal with these, so at least for now I would like RIA to just ignore them so I can move on.
Is there an attribute you can add to a property for RIA to ignore it? I did not see anything in DataAnnonations. I tried Bindable and Browsable and RIA did not seem to care.
Is there any way to get RIA to ignore these properties?
Thanks!
ColinBlair
Star
9871 points
1,839 Posts
11-10-2009 1:43 PM |
Exclude
(You won't find it in DataAnnotations. Exclude is a command to the DomainService not a data annotation so it, like Include, is in the System.Web.DomainServices namespace.)
11-10-2009 1:55 PM |
Wow! That worked! I had been Bing'ing for about an hour. How did you figure that out?
I am going to blog about it. I'll be sure to give you credit!
THANKS!
Fredrik N
Contributor
5018 points
757 Posts
11-10-2009 2:05 PM |
Check this out: http://forums.silverlight.net/forums/t/117740.aspx