Versioning Protocol of Astoria II

In my previous post on the protocol versioning scheme for Astoria, I’ve explained the two HTTP headers DataServiceVersion and MaxDataServiceVersion. These headers are used by the server and client library to determine how and what to communicate with each other. This mechanism is defined by the Astoria Protocol and our library’s implementation does not require…

3

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

ADO.net Data Services V1.5 Community Tech Preview!

The ADO.net Data Services (Code name Astoria) V1.5 CTP1 bits has been released on download center, you can get to it here. While the bits are downloading, you can find out what’s new on this release by reading the team blog. Meanwhile, I’m planning on writing about some of the new features here soon. Check…

1