# OData Data Source

This topic shows how to use OData EndPoint in ActiveReports for binding a report. It includes the sample location, run-time features, and project details.

## Content



The OData Data Source sample demonstrates how to use OData EndPoint for binding a report.

*   [Sample Location](/activereportsnet/docs/v19.2/samples/samples-ar/data-binding-sample/rdl-report-samples/o-data-datasource#sample-location)
*   [Run-Time Features](/activereportsnet/docs/v19.2/samples/samples-ar/data-binding-sample/rdl-report-samples/o-data-datasource#run-time-features)
*   [Project Details](/activereportsnet/docs/v19.2/samples/samples-ar/data-binding-sample/rdl-report-samples/o-data-datasource#ProDetails)

![Report Bound to OData Data Source](https://cdn.mescius.io/document-site-files/images/b298aea2-8cb8-4a0f-be88-4f54aa263ebd/images/odatasample.png)

### Sample Location

**Visual Basic.NET**

[https://github.com/activereports/Samples19/tree/main/DataBinding/PageAndRDLX/ODataDataSource/VB.NET](https://github.com/activereports/Samples19/tree/main/DataBinding/PageAndRDLX/ODataDataSource/VB.NET)

**C#**

[https://github.com/activereports/Samples19/tree/main/DataBinding/PageAndRDLX/ODataDataSource/C#](https://github.com/activereports/Samples19/tree/main/DataBinding/PageAndRDLX/ODataDataSource/C%23)

### Run-Time Features

The ODataDataSource sample needs a running ODataEndPoint to obtain data. To run the sample, please perform the following steps:

1.  Right-click solution in **Solution Explorer** and select **Properties**.
2.  Select **Multiple startup projects** radio button and Start actions in **ODataEndPoint** and **ObjectDataSourceClient**, or **ODataEndPoint** and **JsonDataSourceClient** projects in Startup Project tab.
3.  Run the sample again.

### Project Details

The sample consists of JsonDataSourceClient and ObjectDataSourceClient projects to render data and ODataEndPoint to query data.

### JsonDataSourceClient

This folder contains the DataLayer, Program and Service classes required for the data connection.

The MainForm is the form that appears when you run this sample if you have previously selected **ODataEndPoint** and **JsonDataSourceClient** projects as startup projects in the sample **Properties**.

### ObjectDataSourceClient

This folder contains the DataLayer, Program and Service classes required for the data connection.

The MainForm is the form that appears when you run this sample if you have previously selected **ODataEndPoint** and **ObjectDataSourceClient** projects as startup projects in the sample **Properties.**

The **Models** subfolder contains Movie and Year classes.

### ODataEndPoint

This folder contains the **AppData** and **AppStart** subfolders required to run the application.

The **Controllers** subfolder contains the **MoviesController** and **CustomersController** files. The **MoviesController** handles the user interaction and returns the main view. The **CustomersController** handles the customer details information that is displayed when a customer is selected.

The **Models** subfolder contains the Customer and Movie classes providing data for the report.

**Global.asax** is the default class that sets global URL routing values for this web application.

**Web.config** is the configuration file that contains the httpHandlers that allow ActiveReports to process this web application. Note that you need to manually update version information here when you update your version of ActiveReports.