adspace
explain lazy loading, eager loading, and explicit loading?
Answer Posted / 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 View All Answers