Getting rid of the magic strings in a WCF Data Service Client One of the common problems that you might find when using the generated DataServiceContext for consuming an existing WCF data service is that you have magic strings everywhere for handling links (expanding, adding, deleting, etc).

The problem with all those magic strings is that they make your code to compile correctly, but you might run into some error at runtime because you used a link that does not exist or it was just renamed.

To give a...
Shout it
Only $4.95/month – Windows 2008/ASP.NET 4 Hosting!
.