Skip to main content
Home Forums Silverlight Programming WCF RIA Services How to hide data from a client?
2 replies. Latest Post by FFire on July 2, 2009.
(0)
FFire
Member
3 points
6 Posts
07-01-2009 7:38 AM |
I trying to hide some columns data of my table.
I using [ScaffoldColumn(false)] attribute in MyDomainService.metadata.cs.
But when I debuging by fiddler, I see that scaffolded data is recived by client anyway.
What I need to do to prevent sending some columns of my table to the clients?
sapientc...
222 points
69 Posts
07-01-2009 9:47 AM |
If you want to completely prevent RIA services from generating the field on the client and populating it, you can use the [Exclude] attribute. Then it won't exist on the client at all.
07-02-2009 12:25 AM |
Thank you very much!