Deferred Loading with exclusions
Posted: Thu 11 Feb 2010 13:58
Hey
I try to explain, what I do in my project:
First, I get all my customers out of the database. - By Clicking one of these customers the deferred loading comes to action and gets all the orders assocated to the customer.
The problem is, that I have some customers with over 100 of orders during the last 7 years. - Is there a possibility to get only the orders of the last two years by default? - LoadWith Option is not the way, I search, because, then all data of all customers is loaded and this would be an amazing overhead. - THX
I try to explain, what I do in my project:
First, I get all my customers out of the database. - By Clicking one of these customers the deferred loading comes to action and gets all the orders assocated to the customer.
The problem is, that I have some customers with over 100 of orders during the last 7 years. - Is there a possibility to get only the orders of the last two years by default? - LoadWith Option is not the way, I search, because, then all data of all customers is loaded and this would be an amazing overhead. - THX