OData 101: Using the [NotMapped] attribute to exclude Enum properties

TL;DR: OData does not currently support enum types, and WCF Data Services throws an unclear exception when using the EF provider with a model that has an enum property. Mark the property with a [NotMapped] attribute to get around this limitation. In today’s OData 101, we’ll take a look at a problem you might run…

5

How to use WCF DS 5.0 in a Web Site project

The WCF Data Services 5.0 RTM release includes an update to the Add Service Reference behavior in Visual Studio. For most project types that target .NET Framework 4.0, this means that when you add a new service reference, you will automatically get assembly references to the new client assemblies, and your client will be able…

2

Getting Started with the Data Services Update for .NET 3.5 SP1 – Part 1

Yesterday we released the Data Services Update for .NET 3.5 SP1 that basically brings the functionality available in .NET 4.0 to .NET 3.5 too. To help you get started with the Update, in this post we will: Install the Update Create a database. Create a Web Application containing: An Entity Data Model (EDM) to expose…

1

Enabling X-Domain access to your Data Services

In the Astoria V1.5 CTP2 release, we introduced support for X-Domain and Out Of Browser access to Data Services in our Silverlight client library. This blog post talks about how to enable Cross-Domain access to Data Services from the Silverlight client library. I am a Service author, How do I enable X-Domain access to Data…

0

Using Data Services over SharePoint 2010 – Part 2 - CRUD

In part 1 you learned how to get SharePoint 2010 and Astoria working together, how to add a Service Reference to your Client Application and how to do a basic insert. In this installment you will see full CRUD, so you’ll learn how to do queries, data binding, updates and deletes. The Problem: In part…

0

Using Data Services over SharePoint 2010 – Part 1 – Getting Started

ADO.NET Data Services 1.5 and SharePoint 2010 allow developers to write applications against SharePoint Lists using the familiar Data Services Client programming model. Setup The SharePoint 2010 beta will become generally available in November. In order to use Data Services with SharePoint 2010 Beta, ADO.NET Data Services 1.5 must be installed on your server, ideally…

12