title: Entity Framework Code First fluent API setting field properties in a for loop
body: <p>I am using Entity Framework Code First to create a database table. My model class has ten decimal fields. Currently I am setting the field property like this in the <code>OnModelCreating</code> method:</p>
  
  <pre><code>modelBuilder.Entity&lt;Envelopes&gt;().Property(p =&gt; p.cell_1_1).HasPrecision(18, 2);
  </code></pre>
  
  <p>Since I have ten fields I am thinking of using a <code>for</code> loop to set this precision property such as the following code: </p>
  
  <pre><code>for( int i = 1; i &lt;= 10; i++ ) {
      modelBuilder.Entity&lt;Envelopes&gt;()
                  .Property(p =&gt; p.Equals("cell_1_"+i ))
                  .HasPrecision(18, 2);
  }
  </code></pre>
  
  <p>However the above code is giving a me a syntax error.</p>
  
  <p>Is it possible to set the precision value like this?</p>