title: Use GetProperties() in LINQ Where clause
body: <p>A simple description of my problem: Let's say I have two classes, Class1 and Class 2, that both implement the same interface, which has the following fields:</p>
  
  <p>string FieldA;</p>
  
  <p>string FieldB;</p>
  
  <p>For legacy reasons, Class1 uses FieldA for a certain purpose that is opposite the way Class2 uses it. In fact, Class2 uses FieldB for the same data that Class1 would use FieldA, and vice versa: the fields are switched on the classes.</p>
  
  <p>I need to be able to specify which field to use in the left hand side of the Where clause of a LINQ query before it is passed to Entity Framework. If I use reflection via GetProperties() it simply passes the Func to the database before it evaluates and I get an exception. How can I dynamically decide which field to use?</p>