RIA attribute to ignore a property?
-
Tuesday, November 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!
All Replies
-
Tuesday, November 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.)
-
Tuesday, November 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!
-
Tuesday, November 10, 2009 2:05 PM
Check this out: http://forums.silverlight.net/forums/t/117740.aspx

