title: Error using System.Linq.Dynamic.DynamicExpression.ParseLambda
body: <p>Im getting the following runtime error trying to use Dynamic expressions to parse
  a constructed Lambda statement.</p>
  
  <blockquote>
    <p>An exception of type 'System.Linq.Dynamic.ParseException' occurred in
    System.Linq.Dynamic.dll but was not handled in user code Additional
    information: No property or field 't' exists in type 'MessageText'</p>
  </blockquote>
  
  <pre><code> public static void ApplyAttributeRules&lt;T&gt;(this EntityTypeConfiguration&lt;T&gt; entity) where T : BaseObject
  
  // logic that determines the propertyName ....
  var propLambda = // this line fails
     System.Linq.Dynamic.DynamicExpression.ParseLambda&lt;T, String&gt;("t=&gt;t." + PropertyName); // 
  </code></pre>
  
  <p>The Type T was MessageText.    Im trying to build the lambda expression</p>
  
  <pre><code>t=&gt;t.PropName
  </code></pre>
  
  <p>clearly I dont understand the Docu <a href="http://www.lcs.syr.edu/faculty/fawcett/handouts/CoreTechnologies/CSharp/samples/CSharpSamples/LinqSamples/DynamicQuery/Dynamic%20Expressions.html" rel="nofollow noreferrer">http://www.lcs.syr.edu/faculty/fawcett/handouts/CoreTechnologies/CSharp/samples/CSharpSamples/LinqSamples/DynamicQuery/Dynamic%20Expressions.html</a></p>
  
  <p>can anyone explain how I should call ParseLambda.</p>