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

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -