Filtering on Properties specified in partial class

Posts   
 
    
Meindert
User
Posts: 63
Joined: 07-Nov-2012
# Posted on: 28-Feb-2017 10:40:30   

For some reason I extend the Entity with help of a partial class. The property is this case is a boolean called "Visible".

Is something like the following code possible:


            PredicateExpression filter = null;
            filter = new PredicateExpression(new FieldInfo("Visible").Value == true);
            mDataStore.CandidatesEnhanced.DefaultView.Filter = filter;

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 28-Feb-2017 11:33:13   
Frans Bouma | Lead developer LLBLGen Pro
Meindert
User
Posts: 63
Joined: 07-Nov-2012
# Posted on: 28-Feb-2017 13:38:15   

Thanks