title: Property could not be set to a byte value you must set the property to a non null of type int32
body: <p>Database is in SQL Server 2005 and the datatype of my column in question is defined as <code>tinyint</code> (I cannot change this type)</p>
  
  <p>I have created a model having type as <code>Int32</code>. In read statement system is throwing this error.</p>
  
  <blockquote>
    <p>Property could not be set to a byte value you must set the property to a non null of type int32</p>
  </blockquote>
  
  <p>I was facing a similar problem for other types, then after checking CLR mapping I corrected them. Now I am facing this problem only in case of <code>tinyint</code> and <code>smallint</code>. </p>