-
Notifications
You must be signed in to change notification settings - Fork 16
4. Select
IharYakimush edited this page Mar 1, 2018
·
1 revision
using System;
using System.Collections.Generic;
using System.Linq;
using Community.OData.Linq;
IQueryable<Sample> dataSet = Sample.CreateQuerable();
ISelectExpandWrapper[] filterResult = dataSet.OData().SelectExpand("Name").ToArray();
foreach (var sample in filterResult)
{
var metadata = sample.ToDictionary();
foreach (KeyValuePair<string, object> pair in metadata)
{
Console.WriteLine("{0}: {1}", pair.Key, pair.Value);
}
Console.WriteLine("---");
}
Name: name1
---
Name: name2
---
Name: name3
---