Last post Aug 17, 2012 05:42 AM by kunal.goel
Aug 17, 2012 05:31 AM|PardeepBogra|LINK
I am developing an ASP.Net application. We are using Object Oriented Design. I want to know what is the best approach to populate a child object.
Suppose I have a Employee class. Within Employee class I have an object of Department Class. If I am quering to fetch a list of Employees, I do not want to populate Department Information at that time, as it will consume lots of memory.
Now if I want to select an Employee to view details, at this time I want to fetch details of the Department of that Employee.
What is the best way to do it.
Aug 17, 2012 05:42 AM|kunal.goel|LINK
FOr this you will have to implement EntityFramework in your project.
EntityFramework provides feature called as LazyLoading.