Alex Rivera | Logout

Implicit Lazy Loading vs Explicit Lazy Loading

Asked 2010-04-04T08:14:30.453
9

I've been reading Entity Framework and people were crying over why there was not implicit lazy loading or something. Basically I've been searching things about Lazy Loading and now I know what it is : It is a design pattern which allows us to load objects when they are really needed.

But what is the difference between Explicit Lazy Loading and Implicit Lazy Loading.

Thanks in advance...

Edit
Report

1 Answer

4

Explicit means you explicitly wrote your code to lazy load.

Implicit means that the framework (in this case EF) does lazy loading itself, whether you intended to or not.

answered 2010-04-04T08:22:06.913

Your Answer