title: ADO.NET Entity Model Update
body: <p>Hi i am trying to update a record from the database, but for some reason the record is not updated. I am using ADO.NET entity Framework 4.0</p>
  
  <pre><code>public void updateCredits(string username)
   {
       myDBEntities Entity = new myDBEntities();
       User u = Entity.Users.SingleOrDefault(u =&gt; u.username == username)
       u.firstname = "name";
       u.credits = 11.5;
       Entity.SaveChanges();
   }
  </code></pre>
  
  <p>I tried restarting VS and even the SQL Server but no luck. Am i doing something wrong?</p>