In this article from 2023 explans how to achive exactly that for all types.
Using the override on ConfigureConventions and from the received ModelConfigurationBuilder then you can achieve that:
public class RiderConverter() : ValueConverter<EquineBeast, string>
(
v => v.ToString(),
v => (EquineBeast)Enum.Parse(typeof(EquineBeast), v));
);
protected override void ConfigureConventions(ModelConfigurationBuilder configurationBuilder)
{
configurationBuilder
.Properties<Rider>()
.HaveConversion<RiderConverter>();
}
This is will also allow to specify other properties like Types, max lengths, requireds... etc!