title: unsigned int mysql in C#
body: <p>In mysql I declared fields of type unsigned int. They defaulted to INT(10) UNSIGNED. In my c# code when I try to read in these values to an uint type it gives me an error saying
  "cannot convert long into an uint". 
  Is there anything I am missing here. I thought BIGINT was supposed to be long and int(10) unsigned was supposed to be uint? 
  I am using entity framework to read in the values...
  Thanks</p>
  
  <p>CODE </p>
  
  <pre><code>from employee in model.employees 
  select new EmployeeEntity { 
    EmpID = employee.EmpID, 
    FirstName=employee.FirstName
  };
  </code></pre>
  
  <p><code>EmpID</code> is declared as <code>UNSIGNED INT 10</code> in mysql</p>
  
  <p><code>EmployeeEntity</code> declares <code>EmpID</code> as <code>uint</code> (I tried uint32 as well). However the line</p>
  
  <p>The assignment "EmpID = employee.EmpID" gives me the error...</p>