title: How to update only one field using Entity Framework?
body: <p>Here's the table</p>
  
  <p><strong>Users</strong></p>
  
  <pre><code>UserId
  UserName
  Password
  EmailAddress
  </code></pre>
  
  <p>and the code..</p>
  
  <pre class="lang-csharp prettyprint-override"><code>public void ChangePassword(int userId, string password){
  //code to update the password..
  }
  </code></pre>