Thanks for the article. I assumed that EF must have something like you specified. However, it did not recognize .HasCheckConstraint() method :(
I didn't find info about EF version you used. I can assume that in 2023 it was EF Core 7 or something like that, but still not sure.