entity framework - ASP.NET OData query returns properties with empty values for virtual properties in code first models -


i'm building asp.net odata service uses code first ef5. when query of entity, returned json along empty values related entities.

i want related entities attributes not included in returned json entity query unless 'include' explicitly mentioned.

is there way achieve this?

you have enable lazy loading setting related members virtual


Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -