title: Get Column DataType from Entity Framework Entity
body: <p>Using Entity Framework 5, database first.</p>
  
  <p>Is it possible (at run time) to get the data type of the database column that an entity's property represents?  The .net type would also work fine if that's easier.</p>
  
  <pre><code>IEnumerable&lt;DbEntityEntry&gt; entities =
      context.ChangeTracker.Entries()
              .Where(
                  e =&gt;
                  e.State == EntityState.Added || e.State == EntityState.Modified);
  
  foreach (DbEntityEntry entity in entities)
  {
     foreach (string propertyName in entity.CurrentValues.PropertyNames)
     {
       //so I know the entity and the property name.  Can I get the data type?
     }
  }
  </code></pre>