I am trying to use record types as value objects in a c# class, but when I try to map these types using efcore 5 it throws an exception.
record
My classes: