Serializing the WCF Data Service Client State

With the release of Windows Phone 7, developers using WCF Data Service Client often find themselves needing to preserve the state their data context is in, and be able to continue from a previously saved state. This is called “Tombstoning” an app – the process which the phone framework notifies the app for shutting down,…

4

Working with Local Entities in Astoria Client

Although the Astoria client is really designed to query data existing in some remote service location, it does keep a local copy of all entities it has seen. If the MergeOption is not set to NoTracking, you can find all of the entities currently been tracked in the DataServiceContext.Entities property. The property is defined as:…

1

Versioning Protocol of Astoria

Now that CTP1 of Astoria has been made public, we have two different versions of server and client that can interact with each other. How does Astoria handle the versioning for the various possible interactions? While this question probably does not concern normal users who sticks to our client library, it is something worth to…

0

Safe Resource Not Found (404) Exception Handling in ADO.net Data Service Client

There are many situations where you may encounter an undesired 404 “Resource Not Found” exception while querying against an ADO.net Data Service. For example, you may be writing a Linq query where the filter criteria is specified at runtime by the end users. When your query becomes input sensitive, there is no guarantee that the…

1

Getting Row Count in ADO.Net Data Services

The recent CTP release of ADO.Net Data Services (Astoria) V1.5 contains a nice feature that allows result set counting on the server side. In this blog post, I’ll go over the various ways you can benefit from this feature in your data service. Type of Row Count Before going into details on how to use…

5