After upgrading to .NET 9 and EF Core 9, I noticed that the UUIDs generated for primary keys are still v4 instead of the expected version v7.
Here’s the entity class where the UUIDs are generated:
[Index(nameof(CreatedAt))]
public abstract class BaseEntity : IEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public string Id { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
}