In my project I’m using Entity Framework, I’ve got a problem in ExamProduced entity, to be especific in Quantify property.
In my database Quantify property is tinyint datatype, and when VS imported it, it became in byte. VS is notifying me an error that it’s unknown for me.
Here are the images.


Yes, there’s no explicit conversion from
XAttributetobyte. You’d probably be okay with:The
(int)part will apply the explicitXAttributetointconversion; the(byte)part will perform a narrowinginttobyteconversion. You may want to make thischeckedso that you’ll get an exception if the attribute is “500” for example.