Wednesday, 19 November 2008

Geting the URL your linq to ado.net data services is producing

When you use linq on your data services the linq is generating a URL to grab the data from the data service. Sometimes it isn't obvious if an error is in the data service or in your client code. If you do something like this:

Dim qry = (from i in ctx.Invoices where i.invoiceid = intInvoiceID)

You can easily get the URL by simply writing

qry.ToString

Paste that in your browser to confirm that data service is definitely working OK.

No comments: