erotik film
bodyheat full moves www xxx kajal video la figa che sborra ver video de sexo porno
Luxury replica watches
escort antalya

** THIS SITE IS AN ARCHIVE ** - New Content is at:

Jun 3

Written by: Michael Washington
6/3/2012 7:14 PM  RssIcon

The following is an excerpt from the book: OData And Visual Studio LightSwitch Using ASP.NET / Windows Phone / jQuery / datajs / Knockout available at:

Chapter 1: What Is This Book About?

This book is about Microsoft Visual Studio LightSwitch and OData. The purpose of this book is to demonstrate its use, and explain its importance.

What Is Visual Studio LightSwitch?

Visual Studio LightSwitch is a development tool that provides the easiest and fastest way to create ‘forms over data, line of business applications’. It allows you to build applications for the desktop and the cloud. It does this by allowing you to quickly and easily define and connect to your data, program your security and business rules, and expose this via OData to practically any ‘client’ such as mobile devices and web pages.

What Is OData?

OData is a protocol used to expose and consume data over the web. It uses a common REST-like (representational state transfer) interface to communicate, rather than the usual pre-defined application specific interfaces used by traditional web services. OData is a project created by Microsoft. The home page for the project is at:

As described in the article: LightSwitch Architecture: OData (John Rivard) (, OData allows CRUD (Create, Read, Update, Delete) operations using the following HTTP (Hypertext Transfer Protocol) verbs:

  • Create: POST
  • Read: GET
  • Update: PUT
  • Delete: DELETE

This allows you to have full data interaction when you use OData. In addition, OData provides a mechanism to query the data. For example, in subsequent chapters we will demonstrate how a mobile application is able to query for orders for a specific customer. This is done without the need to define a “get customer orders” web service. We simply use the standard OData protocol.

OData is Communication with Clients and Servers Outside of Your LightSwitch Application

Communication between your LightSwitch application, and clients that need to communicate with it, is very important. For example, allowing a user to place orders in your LightSwitch application using a mobile phone or a tablet is an important component to creating productive applications for your end users.

OData Allows You to Centralize Your Business Rules and Security

Security is an important aspect of your application. Using LightSwitch, you are able to easily configure security.

The following code restricts a non administrator from accessing any order that is not their own:


This code needs to be implemented only once to protect the data and to enforce the business rule, no matter what client is being used.


This allows you to centralize your business rules and security and have them enforced consistently no matter what client (web page, mobile phone, IPad) is accessing it.

You will not need to duplicate the business rules and security in each client that consumes your application. Each client will be simpler to create, and easier to maintain.

4 comment(s) so far...

Hi Michael,

Does this ebook cover using Odata in VS11?

It does not seem to mention the VS version anywhere in the sales doco.


By jeejee on   6/12/2012 1:58 AM

@jeejee - The book only covers LightSwitch in Visual Studio 2012.

By Michael Washington on   6/12/2012 4:16 AM

Hi Michael,

Will the book have any detail to help with an android connection with a Lightswitch service?



By SydneyWaterBoy on   7/18/2012 10:52 PM

@SydneyWaterBoy - No, it does not have any Android samples.

By Michael Washington on   7/19/2012 4:37 AM
Microsoft Visual Studio is a registered trademark of Microsoft Corporation / LightSwitch is a registered trademark of Microsoft Corporation