Home > ADO.NET > Lazy loading in entity framework

Lazy loading in entity framework

This post was most recently updated on December 15th, 2014

One of the biggest issue when we use entity framework that is when we request for one single table you will get all related tables in table object.

for example:

 in above code you will get all related tables in company object.

We can avoid this using Lazy loading.

for example:

 in this case you can get only company table not related table

This Article is TAGGED in , , , , , . BOOKMARK THE permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">