Self-Ref Load On Demand with ISDatasource

7 replies. Last post: February 21, 2012 5:39 PM by Frank P
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Previously you had given me the sample attached.  This is a sample of self ref load on demand with custom business objects.  I see that the GetEmployees method is executing "SELECT * FROM EMPLOYEES".  This is not practical in my situation - that is why I want load on demand.  If I change this method to "SELECT * FROM EMPLOYEES WHERE ReportsTo IS NULL"  the sample no longer works beyond the first level of self ref.  I see the data source is not caching the data that has been loaded on demand, so when additional levels are queried there is no parent for them.  How can this be fixed?
All times are GMT -5. The time now is 3:36 PM.
Previous Next