Lazy Loading is a concept where we load objects on demand. Consider a situation where you have 1 to many relationships between “customer” and “address” object.
Now let’s say you are browsing the customer data but you do not want address data to be loaded that moment. But the time you start accessing the address object you would like to load address data from database.
Entity framework has the behavior by default enabled. For instance consider the below code. When we are doing “foreach” on the customer object address object is not loaded. But the time you start doing “foreach” on the address collection address object is loaded from SQL Server by firing SQL queries.
Below is a great ADO.NET Entity framework interview question video created by www.questpond.com which shows how to do CRUD using Entity framework.