title: Entity framework DB first - private setter
body: <p>For every table, EF generates a partial class, where all fields are publicly accessible, for example</p>
  
  <pre><code>public int ID { get; set; }
  </code></pre>
  
  <p>Is it possible to make the <code>set</code> private? I would then only allow the field to be changed calling my custom public method.</p>