title: Entity Framework Core - Exclude entity property from view, but include in database table
body: <p>I am adding to an entity a property called <code>DateCreated</code>, which will be set programmatically.
  I want the <code>update-database</code> process to create a table column for it, as it does for all other properties. But I do not want it to create a date picker for it in the corresponding create view.</p>
  <p>I believe the <a href="https://docs.microsoft.com/en-us/ef/core/modeling/entity-properties?tabs=data-annotations%2Cwithout-nrt" rel="nofollow noreferrer"><code>NotMapped</code> attribute</a> will exclude the property from the DB table completely</p>
  <p>Example:</p>
  <pre><code>public class Person
  {
      public int Id { get; set; }
      public string FirstName { get; set; }
      public string LastName { get; set; }
  
      //dont want this to show on Person create page, but should appear is DB table column
      public DateTime DateCreated { get; set; }
  }
  </code></pre>