Predicate with field name

Posts   
 
    
Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 26-Aug-2010 19:12:46   

Hi,

new RelationPredicateBucket(VwStatsOrderTownBreakdownFields.EventId == selectedEvent);

I have several entities with an 'EventId' field and I would like to factor out the creation of the RelationPredicateBucket that filters on this field.

Is it possible to do this with a string of the entity's type name and within a medium trust environment i.e. no reflection?

So something like this...

[code]new RelationPredicateBucket(typename["EventId"] == selectedEvent);

Cheers, Ian. smile

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 26-Aug-2010 23:02:35   
David Elizondo | LLBLGen Support Team
Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 27-Aug-2010 00:45:49   

Marvelous. Thanks.