Ensure that the RowVersion property is correctly configured as a concurrency token in your DbContext:
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Person>()
.Property(p => p.RowVersion)
.IsConcurrencyToken();
}