Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

Using WCF Data Services with XPO Data Service Provider for the XtraScheduler data binding

$
0
0

XPO now ships with the integrated support of the Open Data Protocol V2 (OData) so this example is not relevant for versions v2011 vol.2.5 and higher.

This example illustrates the use of the XPO Toolkit for binding the Open Data Protocol (OData) feeds exposed via the XPO Data Service Provider to a Scheduler.

The Open Data Protocol is a Web protocol for querying and updating data from a variety of sources. You can use the WCF Data Services to expose your data via this protocol. If your application is built upon the XPO with its specific data model, you'll need a data provider for XPO to connect to the WCF Data Services. Successfully the required data provider exists and can be downloaded from CodePlex at the eXpress Persistent Objects (XPO) Toolkit site.

This example consists of three projects. The DevExpress.Calendar.Web project implements WCF Data service (operating at fixed port 60996). The DevExpress.Calendar.Model project contains XPO data model, and the DevExpress.Calendar project displays the Scheduler control bound to XPO data.

To run the example, a running local SQLExpress server is required.
To create a database with data tables and fill them with data, run tests for the DevExpress.Calendar.Web project.
This step can't be avoided. Run tests for the DevExpress.Calendar.Web project - this action creates data tables in the database and fill the tables with sample data. To accomplish this, right-click the project in the Solution Explorer and select the 'Run test(s)' item in the context menu.
Now you can build the solution and run it.

Note that the data model used in this example is quite simple and does not support resource sharing, recurring appointments and reminders.

See Also:
OData Provider for XPO - Introduction


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>