title: MVC3 Entity Framework Displaying float type from database SQL Server
body: <p>I am getting the following error when trying to retrieve float from database:</p>
  
  <p><strong>The 'Hours' property on 'WorkHours' could not be set to a 'Double' value. You must set this property to a non-null value of type 'Single'.</strong></p>
  
  <p>The Hours property in the WorkHours Entity is: </p>
  
  <p><strong>public Single? Hours {get; set;}</strong></p>
  
  <p>Table design type:</p>
  
  <p><strong>Hours Float</strong></p>
  
  <p>When i store a value it stores as a double(16 digits after the point),i believe float is 7 digits after the point. </p>
  
  <p>Any ideas why i am getting that error?</p>
  
  <p>Thanks</p>
  
  <p>MVC3, EF4, Sql Server 8 (2000)</p>