WCF Data Service Usage Summary (ii) Use WCF Data Service to create OData services

Source: Internet
Author: User

In the previous chapter, we described how to access the resources provided by the OData service through the OData protocol. The following describes how to create a OData service. In this article, the main description in the. NET environment, how to use the WCF Data service to create the OData service. Of course, for JAVA or other platforms, you can also create OData services. Even the database can provide OData services.

WCF Data Service is required for ORM support, of course, mainstream ORM has supported WCF data service, including (but not limited to) the Entity framework, Linq to SQL, alinq these mainstream ORM framework 。

First, create Model

The first thing to do with the WCF Data service is to create the model, about how to create the model, not to talk about it here, if it's not clear, please read the relevant tutorials based on the ORM you are using.

Second, create WCF Data Service

Right-click on the item, select Add Item, then select WCF Data Service, and if this is not found, install the WCF Data Service template.

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.