apply $expand to service operation
- by Thurein
Hi,
I have a service operation in my dataservice, which returns a list of objects. Is it possible to apply $expand to the result.
[WebGet]
public IQueryable<contact> GetFilterByContactDetailCount(String city)
{
var result = from c in CurrentDataSource.Contacts
join ca in CurrentDataSource.ContactAddresses on c.ContactID equals ca.ContactID
join a in CurrentDataSource.Addresses on ca.AddressID equals a.AddressID
where (String.IsNullOrEmpty(city) || a.City.Contains(city)))
select c;
return result.AsQueryable<Contact>();
}
Thanks
Thurein