title: TimeStamp with EF Core 2.1 and Sql Server?
body: <p>I want to have basically on most of my tables a "Last Updated" column so that I can quickly check when it was last updated.</p>
  
  <p>Right now I been just putting a datetime and every time I do an action in my C# code I will save the new DateTime to update that field. Of course this can lead to me forgetting to do this.</p>
  
  <p>I want something more automatic. I don't need this really for auditing purposes so it does not need to be too advanced.</p>
  
  <p>I tried</p>
  
  <pre><code>builder.Property(x =&gt; x.RowVersion).IsRowVersion();
  </code></pre>
  
  <p>what should make a timestamp but when I look at in the database I see <code>0x00000000000007D1</code> when I thought it would look more like a datetime.</p>
  
  <p>edit </p>
  
  <pre><code> public class CompanyConfig : IEntityTypeConfiguration&lt;Company&gt;
      {
          public void Configure(EntityTypeBuilder&lt;Company&gt; builder)
          {
              builder.HasKey(x =&gt; x.Id);
              builder.Property(x =&gt; x.Id).ValueGeneratedOnAdd();
              builder.Property&lt;DateTime&gt;("LastUpdated");
          }
      }
  </code></pre>