Dynamically creating predicates

Posts   
 
    
bentos
User
Posts: 146
Joined: 12-Jul-2006
# Posted on: 25-Aug-2006 14:08:58   

Hello all,

Hopefully this is a quick one,

I would like to create predicates on the fly , how would I do this without explicit hard coding/branching in the code

I appreciate that predicates are typed, but if I knew which entity and which field I would like to create my predicates against, how could I do this at runtime?

Regards,

Matthew

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 25-Aug-2006 16:06:23   

Do you mean something as in the following thread: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=5805

Predicates are not typed/related to entities, there are different types of predicates for the different filtering ways that you may need.

Or do you need something like Reflection as suggested in the following threads: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=5977 http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=5975 http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=2019

bentos
User
Posts: 146
Joined: 12-Jul-2006
# Posted on: 28-Aug-2006 20:35:06   

Yes, reflection looks like it might be what I'm looking for :-)

Thanks