title: Dotnet Core 3.1 - Updating to 3.1 and setting default values using "HasDefaultValue" doesnt seem to exist
body: <p>Updating to Dotnet Core 3.1 and porting my code I find that in my DbContext I am getting the following error:</p>
  
  <blockquote>
    <p>'PropertyBuilder' does not contain a definition for
    'HasDefaultValue' and no accessible extension method 'HasDefaultValue'
    accepting a first argument of type 'PropertyBuilder' could be
    found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>My code where this occurs follows:</p>
  
  <pre><code>        modelBuilder.Entity&lt;Tenant&gt;().Property(t =&gt; t.TenantNo).HasMaxLength(20);
          modelBuilder.Entity&lt;Tenant&gt;().Property(t =&gt; t.CompanyName).HasMaxLength(100).IsRequired();
          modelBuilder.Entity&lt;Tenant&gt;().Property(t =&gt; t.ContactLastName).HasDefaultValue(false).IsRequired();
          modelBuilder.Entity&lt;Tenant&gt;().Property(t =&gt; t.Email).HasMaxLength(500).IsRequired();
          modelBuilder.Entity&lt;Tenant&gt;().Property(t =&gt; t.MobilePhone).HasMaxLength(20).IsRequired();
          modelBuilder.Entity&lt;Tenant&gt;().Property(t =&gt; t.OfficePhone).HasMaxLength(20);
          modelBuilder.Entity&lt;Tenant&gt;().Property(t =&gt; t.CompanyEmail).HasMaxLength(500);
          modelBuilder.Entity&lt;Tenant&gt;().Property(t =&gt; t.Address1).HasMaxLength(500);
          modelBuilder.Entity&lt;Tenant&gt;().Property(t =&gt; t.Address2).HasMaxLength(500);
          modelBuilder.Entity&lt;Tenant&gt;().Property(t =&gt; t.ABN).HasMaxLength(14);
          modelBuilder.Entity&lt;Tenant&gt;().Property(t =&gt; t.Database).HasMaxLength(100).IsRequired();
          modelBuilder.Entity&lt;Tenant&gt;().Property(t =&gt; t.IsLocked).HasDefaultValue(false);
  </code></pre>
  
  <p>Where ever I have used .HasDefaultValue I am getting this error. I have, I believe, all the required directives...</p>
  
  <pre><code>using JobsLedger.CATALOG.Entities;
  using Microsoft.EntityFrameworkCore;
  using System.Threading;
  using System.Threading.Tasks;
  </code></pre>
  
  <p>Seems in upgrading from 3.0 to 3.1 they missed this out or they are using a different way of setting default values..</p>
  
  <p>So before I posted this I did do a google search and also a Stackoverflow search with no results.</p>
  
  <p>Wondering someone might suggest how to set default values in 3.1?</p>