Skip to main content

Answered Question RIA attribute to ignore a property?RSS Feed

(0)

DeborahK
DeborahK

Member

Member

63 points

46 Posts

RIA attribute to ignore a property?

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
ColinBlair

Star

Star

9871 points

1,839 Posts

Answered Question

Re: RIA attribute to ignore a property?

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.)

-Colin Blair

http://www.RiaServicesBlog.net : The Elephant Guide to RIA Services
SLColinBlair on Twitter

DeborahK
DeborahK

Member

Member

63 points

46 Posts

Re: RIA attribute to ignore a property?

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
Fredrik N

Contributor

Contributor

5018 points

757 Posts

Re: RIA attribute to ignore a property?

Check this out: http://forums.silverlight.net/forums/t/117740.aspx

/Fredrik Normén - fredrikn @ twitter

ASPInsider

Microsoft MVP, MCSD, MCAD, MCT

ASPInsiders
My Blog
  • Unanswered Question
  • Answered Question
  • Announcement