i recently came to know about lazy,explicit and eager loading as i was attending meeting for my new project?
But,i didn’t get that why we are studying that?
I was to work on a silverlight project which also include WCF RIA services.My mentor was explaining these types of loading.
Can any one help me out so that i can study them and show my mentor that how serious i am in a task which is assigned to me.
i recently came to know about lazy,explicit and eager loading as i was attending
Share
Say you have a CustomerOrder class, and this class has a MyCustomer property and a MySalesOrderLines property. The MyCustomer property contains a reference to the Customer class that represents the customer of the order, while the MySalesOrderLines property contains a reference to a collection of order lines for the order. In Lazy Loading, the databse records that these properties return are not retrieved from the database until they are actually called via code. ie, When retrieving a Lazy-Loaded CustomerOrder instance from the database, only when there is a line of code that refers to CustomerOrder.MyCustomer is the Customer instance retrieved from the database. In eager loading, these properties are retrieved from the database at the same time as when the CustomerOrder record is retrieved from the database.