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

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

Mar 1

Written by: Michael Washington
3/1/2012 11:02 PM  RssIcon

In LightSwitch 2011, the team ripped out the guts and replaced the WCF RIA engine with an OData engine. The following are some techniques to observe how LightSwitch communicates using OData. This is important when you are making your own OData calls using the following method:

Accessing Your Visual Studio 2011 LightSwitch Application Using OData

F12 In IE Is Your Friend

clip_image001

Pull up a LightSwitch 2011 (or higher) in the web browser.

Hit the F12 key in Internet Explorer 9+ (or you can use Fiddler)

clip_image002

Select the Network tab and then click Start capturing.

clip_image003

Refresh the page.

clip_image004

After the calls to set-up the page we see the OData calls to retrieve the data. We can tell because type is xml or atom+xml.

clip_image005

The Clear button clears the results.

clip_image006

We can see what happens when we retrieve data in the application.

For example selecting an item in a list to load the record details.

clip_image007

We can see the OData calls.

clip_image008

If we make an update to a value …

clip_image009

… and click Save

clip_image010

… we see the url.

We can double-click on it to see the details.

clip_image011

We can click on the Request body tab to see what was sent.

clip_image012

If we save the contents to an .xml file, we can open up the .xml file in Internet Explorer to see it properly formatted.

More on making OData Calls

The Microsoft article, Accessing Data Service Resources (WCF Data Services), explains a lot of the syntax used:

image

 

Also See

Accessing Data Service Resources (WCF Data Services)

OData: Operations

Calling Service Operations (WCF Data Services)

Does OData Data Source Connection Support JSON Format?

datajs - Javascript Library for data-centric web applications

Microsoft Visual Studio is a registered trademark of Microsoft Corporation / LightSwitch is a registered trademark of Microsoft Corporation