Preparing a Sample LightSwitch OData Service
The goal of this article is to show how you can create Windows 8 Store Apps that can consume a LightSwitch data source exposed as an OData feed. Instead of building a new LightSwitch application from scratch, for the sake of consistency I'll show you how to use the sample application described in Part 2 of this article series, "Your Data Everywhere: Exposing LightSwitch Data as OData Services to Other Clients." In Part 3 of the series, "Your Data Everywhere: Consuming LightSwitch's OData Services from Windows Phone Apps," I demonstrated how to secure an OData service exposed by LightSwitch implementing a demo user with a password.
In summary, we have a LightSwitch application that has two tables: Customers and Orders. LightSwitch's intrinsic database is automatically exposed as an OData feed that will be accessed by a Windows 8 Store App, as I'll show shortly.