Eager & Lazy Loading – Entity Framework

Eager & Lazy Loading – Entity Framework

Eager loading is the process of loading the relational data at one instance. Lazy loading is the process of loading relational data when needed (on demand basis). The entity frame work supports both eager and lazy loading patterns. In below figure the Department and Employee are having a one-to-many relationship. Let us see how we can achieve eager/lazy loading using below entities. Data […]