Using OData Data Sources

Valid from List & Label 16
The Open Data Protocol is a web protocol enabling database queries. It is based on HTTP, ATOM and JSON. The .NET framework supports OData access via dynamically created LINQ class wrappers and the Entity Framework.

To use such data with List & Label, use the ODataDataProvider. The following code shows how to do this:

C#:

// Init data provider
ODataDataProvider provider = new ODataDataProvider(url, false);

// Init List & Label, bind data and call the Designer
ListLabel LL = new ListLabel();
LL.DataSource = provider;
LL.Design();
LL.Dispose(); 

VB.NET:

' Init data provider
Dim provider As New ODataDataProvider(url, false)

' Init List & Label, bind data and call the Designer
Dim LL As New ListLabel()
LL.DataSource = provider
LL.Design()
LL.Dispose() 


IDKBTE000785 KBTE000785