asp.net web api - Get NavigationProperty on OData does not work -
the goal retrieve object loaded navigationproperties:
problem
even informing $expand
on odata url, navigation property not loaded!
full image: http://i.stack.imgur.com/jl3dg.png
if try navigate property, error displayed!
full image: http://i.imgur.com/2iwsmap.png
code
class
public class regional : entitynome { public virtual icollection<pessoa> contatos { get; set; } }
config
modelbuilder.entityset<regional>("regionais"); modelbuilder.entityset<pessoa>("pessoas");
api version
microsoft.aspnet.webapi -> 5.0.0-beta1-130514
microsoft.aspnet.webapi.client -> 5.0.0-beta1-130514
microsoft.aspnet.webapi.core -> 5.0.0-beta1-130514
microsoft.aspnet.webapi.odata -> 5.0.0-beta1-130514
microsoft.aspnet.webapi.web... -> 5.0.0-beta1-130514
Comments
Post a Comment