title: Is there any way to change value of field set to "StoreGeneratedPattern=Computed"
body: <p>I have an <code>int</code> field in my table set to <code>default 0</code>. I set this field's <code>StoreGeneratedPattern</code> as <code>Computed</code>, but I can't change the value of this field after using <code>SaveChanges()</code>.
  I have found this <a href="https://stackoverflow.com/a/5042357/9497111">answer</a> on same problem, just wondering if there is any better way to do that.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>here is the edmx generated from database (entity framework 6)</p>
  
  <p><a href="https://i.stack.imgur.com/EjUoD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EjUoD.png" alt="enter image description here"></a></p>
  
  <p>this is the result after adding (from my application) some data to table <code>Intervention</code> and as you see IsDeleted set to 0 because of <code>IsDeleted int default 0</code></p>
  
  <p><a href="https://i.stack.imgur.com/QI78z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QI78z.png" alt="enter image description here"></a></p>
  
  <p>and </p>
  
  <p><a href="https://i.stack.imgur.com/uebrS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uebrS.png" alt="enter image description here"></a></p>
  
  <p><em>But</em> after trying something like that </p>
  
  <pre><code> db.Interventions.Find(currentInterv).IsDeleted = 1;
   db.SaveChanges();
  </code></pre>
  
  <p>its just didn't work because of StoreGeneratedPattern=Computed</p>