Suggestion to easy retrival

Posts   
 
    
Anderskj1
User
Posts: 33
Joined: 11-Jan-2005
# Posted on: 17-Jan-2005 02:13:25   

Hi i wonder why you can't use a collection as search object it self.

Eg (selfservice)

OrdreCollection o = new OrdreCollection();

o.Address.Town = "London"; o.TotalPrice = 400;

o.SearchAndFill();

Now i eg had filled the o collection with 15 orders.

The reason is that I often don't want the flexibility like > in my search and above would really be a LOC saver.

Would it be problematic to implement?

Anders

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 17-Jan-2005 09:53:36   

It's not problematic to implement, however it will give a lot of code which is perhaps never used. To get this functionality in a typed manner in all kinds of classes, you need a lot of code being generated. This is not included by default, as it would bloath large projects up to proportions which are not handable. For people who want this, they can add it via code generation, for example via an include template.

Frans Bouma | Lead developer LLBLGen Pro