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!

retrive object

full image: http://i.stack.imgur.com/jl3dg.png

if try navigate property, error displayed!

error odata on navigationproperty

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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -