Learning Silverlight 2 Series (17): Data and communication ado.net information Services

Source: Internet
Author: User
Tags silverlight

This article will briefly describe how to invoke ado.net Data Services in Silverlight 2.

Prepare knowledge

Since Ado.net Data Services is in ASP.net 3.5 extensions, first install the latest version of ASP.net 3.5 extensions, which you can download from here, before starting this example. After the installation is complete, you should be able to see the Ado.net Data Service entry in the Add New Item dialog box:

The Ado.net data service allows applications to expose data as services so that we can access the data directly through the browser, which supports open industry standards such as ATOMPUB and JSON. It supports standard HTTP actions such as post, get, put, and delete to complete the creation, updating, deletion, and reading of data. The knowledge of the Ado.net data Service there is no more to say, you can see the relevant information.

Simple example

If you look at the previous three articles, it may be annoying for the following interface, but in this article I will still use this example to demonstrate:

After the Silverlight 2 project is established, we add a post class to the Web project:

public class Post
{
  public int Id { get; set; }
  public string Title { get; set; }
  public string Author { get; set; }
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.