I am little of confused how to get list of collection names from the following odata service http://services.odata.org/V4/Northwind/Northwind.svc/
I just want to get a list of all of the available collection names in the service And then I'd like to let the user choose which collection to view information for, and subsequently show items in that collection
For example, the following line accessing to Customers
collection.
var customers = client.For("Customers").FindEntriesAsync();
I could able to access inside of each collection as follows.
static void Main(string[] args)
{
var client = new ODataClient("services.odata.org/Northwind/Northwind.svc/");
var customers = client.For("Customers").FindEntriesAsync();
foreach (var customer in customers) {
Console.WriteLine(customer["CustomerID"]);
}
}