Last post Sep 29, 2014 04:43 AM by Eileen ni - MSFT
Jun 06, 2011 01:01 AM|smanjula|LINK
Can anyone pls explain what is Lazy Load in MVC?
Jun 06, 2011 01:15 AM|Nandip Makwana|LINK
As the name suggests Lazy Load, we can say that it is the design pattern used in object relational pattern which ensure loading of object when it is required.... for more detail plz visit following wiki article on www.asp.net
Sep 29, 2014 04:43 AM|Eileen ni - MSFT|LINK
Thanks for your post.
Lazy loading is a concept where we delay the loading of the object until the point where we need it. Putting in simple words, on demand object loading rather than loading objects unnecessarily.
For example, consider the below example where we have a simple Customer class and this Customer class has many Order objects inside it. Have a close look at the constructor of the Customer class. When the Customer object is created it also loads the
Order object at that moment. So even if we need or do not need the Order object, it’s still loaded.
And duplicate thread :http://forums.asp.net/t/1686976.aspx?Lazy+Loading+in+MVC
Hope this can be helpful.