title: EF Core dynamically ignoring column
body: <p>Below I'm trying to dynamically ignore a column in the database based on an attribute being set in the entity class.  I can't work out what to put for ?????.  I tried prop but no good.  Please help.</p>
  
  <pre><code>            System.Reflection.PropertyInfo[] props = typeof(MyTable).GetProperties();
              foreach (var prop in props)
              {
                  object[] attrs = prop.GetCustomAttributes(true);
                  foreach (object attr in attrs)
                  {
                      DatabaseAttribute dbAttr = attr as DatabaseAttribute;
                      if (dbAttr != null)
                      {
                          string propName = prop.Name;
                          System.Version minVersion = new System.Version(dbAttr.MinVersion);
                          if (databaseVersion &lt; minVersion)
                          {
                              // The database doesn't know about this property, ignore it
                              modelBuilder.Entity&lt;MyTable&gt;().Ignore(d =&gt; ?????);
                          }
                      }
                  }
              }
  </code></pre>