I've been trying to find the answer to this and haven't had any luck. Assume I have a model that looks something like this:
public class A
{
public int Id {get;set}
public ICollection<B> Bs {get;set;}
}
public class B
{
public int Id {get;set}
public ICollection<C> Cs {get;set;}
}
public class C
{
public int Id {get;set}
public string Something {get;set;}
}
Can I write a Web Api 2 OData controller while can be queried like so: /odata/A(1)/B(2)/C(3)/Something
If this is redundant please point me to the place I should look. Thanks!