explain lazy loading, eager loading, and explicit loading?



explain lazy loading, eager loading, and explicit loading?..

Answer / Satydev Tripathi

1) Lazy Loading: It is a technique where related entities are not loaded immediately but only when they are required. This can improve application performance by reducing initial load time but may result in multiple database round trips for accessing related data. 2) Eager Loading: It is the opposite of lazy loading where all related entities are loaded along with the primary entity during the initial query. This reduces the number of database round trips but might increase the initial load time. 3) Explicit Loading: It allows developers to manually force loading of related entities using the `Load` method, even if lazy loading is enabled.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

What is Separation of Concerns in ASP.NET ASP.Net MVC?

1 Answers  


Why should we go for entity framework?

1 Answers  


explain lazy loading, eager loading, and explicit loading?

1 Answers   Microsoft,


What are HTML Helpers, AJAX Helpers in ASP.Net MVC?

1 Answers  


How you can implement custom validation in asp.net MVC?

1 Answers  


what is linq to entities?

1 Answers   Microsoft,


What are the mobile devices supported by .net platform

1 Answers  


Explain what languages does the .net framework support?

1 Answers  


What is the difference between managed and unmanaged code?

12 Answers   IBM,


Can you set the unlimited length for "maxjsonlength" property in config?

1 Answers  


what is client wins and store wins mode in entity framework concurrency?

1 Answers   Microsoft,


If we write return statement in finally block will it works fine or throws any error?

7 Answers   Kanbay,


Categories