Update your secret recipe...
<p>Override the <code>OnModelCreating()</code> method of your <code>ApplicationDbContext</code> and add this:</p> <pre><code class="language-cs">builder.Entity<ApplicationUser>() .Property(a => a.Id) .ValueGeneratedOnAdd() .HasDefaultValueSql("NEWSEQUENTIALID()"); </code></pre> <p>Do the same for all entities that have Guid IDs.</p>
Update Note
Back To All Notes