title: Entity Framework CodeFirst dynamic mapping
body: <p>So I'm using the 'CodeFirst' methodology of Entity Framework and I have mapping files to map the table information and add in things such as validation so for instance:</p>
  
  <pre><code>this.Property(t =&gt; t.AccountName)
              .IsRequired()
              .HasMaxLength(25);
  </code></pre>
  
  <p>This is using the Fluent API and I'm wondering how to get the property name by string instead of t.AccountName. I'm wanting to dynamically set these properties and I just don't know how to do that programmatically. </p>