DB Blogs

Post by this author

New JavaScript library for OData and beyond

Today we are announcing a new project called ‘datajs’, a cross-browser JavaScript library that enables web applications to do more with data. datajs leverages modern protocols such as JSON and OData as well as HTML5-enabled browser features. ‘datajs’ is an open source project, released under MIT. In this initial release...

Connecting to an OAuth 2.0 protected OData Service

This post creates a Windows Phone 7 client application for the OAuth 2.0 protected OData service we created in the last post. Prerequisites: To run this code you will need: Our application: Our application is a very basic Windows Phone 7 (WP7) application that allows you to browse favorites and if logged in create new ...

OData and OAuth – protecting an OData Service using OAuth 2.0

In this post you will learn how to create an OData service that is protected using OAuth 2.0, which is the OData team’s official recommendation in these scenarios:  So if your scenarios is one of the above or some slight variation we recommend that you use OAuth 2.0 to protect your service, it provides the utmost ...

Using ASP.NET output caching with Data Services

A lot of our customers have asked us how to cache results from their Data Service. Which is why I want to point you to this excellent post by Peter Qian (a developer on the Data Services team) that shows you how to setup ASP.NET output caching. It lays out what is required very clearly. Check it out. Alex James Program Manager Microsoft...

Entity Set Resolver

Problem Statement:   In previous versions, the WCF Data Services .NET and Silverlight client libraries always assumed that all collections (aka entity sets) had the same base URI. This assumption was in place because the library used the URI provided in the DataServiceContext constructor to generate collection URIs using the OData ...

Additional Feed Customization Support

1.     Problem: In the previous version, WCF Data Services introduced the feed customization feature. This feature enabled users to map properties to certain elements in the Atom document. As an example, users could map a name property to the Atom title element. This is especially useful for generic feed readers ...

Named Resource Streams

One of the new WCF Data Services features in the October 2010 CTP is something called Named Resource Streams. Background Data Services already supports Media Link Entries which allows you to associate a single streamed blob with an entry.  For example, you could have a Photo entry that lists the metadata about the photo and...

Introduction to Multi-Valued Properties

Although you may see both the terms, “Bags” and “Multi-Valued Property”, they refer to the same thing. While this naming change was not included with the latest WCF Data Services 2010 October CTP release, based on community feedback, we’ve decided to use Multi-Valued Property for all future releases. What is a Bag Type...

Data Services Client for Win Phone 7 Now Available!

  Today, at the PDC, we announced that a production-ready version of the WCF Data Services client for Windows Phone 7 is available for download from http://odata.codeplex.com.  This means that it is now simple to create an app that connects your Windows Phone 7 to all the existing OData services as well as the new ones we’re ...

Walkthrough: OData client for Windows Live Services

Background As described recently on the Windows Live team blog, programming against your Windows Live artifacts (Calendar, Photos, etc) is now possible using OData. This blog post will walk through how to use our recently released WCF Data Services CTP to interact with the Windows Live OData endpoint. In general the Windows Live OData ...