My constructor sets the attribute, so why is EFcore complaining? - C#