Explain lazy loading in entity framework?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Feb 22, 2018

 

Lazy Loading is a process of collection of entities or a single entity that is loaded spontaneously for the first time from the database and property that refers to those entities or entities can be accessed. In other words, lazy loading means delaying the loading of related data, until it is specifically requested. While loading the POCO type of entities, lazy loading is produced by generating derived proxy type instances. Lazy loading then overrides the virtual properties to insert the hook of the loading.

If the configuration is defined as the default and proper instruction is not given to the entity framework in a query, then it will return the lazy loading only.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Entity framework interview questions

    Explain what is Entity Framework?

    Entity Framework happens to be an open-source ORM or object-relational mapping framework utilized for ADO.Net. It is a set of mechanization that assists in the improvement of data-oriented software ad...

    Entity framework interview questions

    What is new in entity framework 7?

    The new features in entity framework 7 include the following:New platforms: .NET along with the other distinct technologies like WPF, ASP.NET, WinForms is supported by Entity Framework 7.  E...

    Entity framework interview questions

    How to check installed version of Entity Framework?

    To check, If you open up the reference file and detect system.entity.data, click the module and then inspect the runtime version numerical in the Properties explorer and you can witness the subversion...