When I use an entity to load a record, any field in the table defined as "TinyInt" datatype is returned as "Specified Cast is not valid".
What is up with that? The really interesting thing is, if you build a page using the Scaffold control, IT will see that TinyInt field as a Boolean candidate and add a Check Box to the Edit page AND properly save both a 0 and 1 state. What gives?
I'm sure I am just missing something here. Can anyone tell what I am doing wrong?
****************************************************************
Dim n as new news(123)
Me.chkEnabled.Checked = news.is_enabled
****************************************************************
In debug, you can see that news.is_enabled is holding a value of {"Specified Cast is not valid."} But the table in MySQL clearly has a 1 in it.
Any and all help is appreciated. I really don't want to set all of these TinyInt fields to Int fields. Plus, if I did, the scaffold would present a textbox for numeric input. Not good...
Thanks in advance.