title: Sometimes my deleted data does not seems to be executed directly with Entity Frmaework
body: <p>I use Entity Framework. I need to perform an ajax delete and immediately after that an ajax get.</p>
  
  <p>Sometimes, the data is 'really' deleted then the get take it into account.</p>
  
  <p>Sometimes the data is not 'already' deleted and thus the get is not what I expect for.</p>
  
  <p>Is there a way to 'flush' someway to force the database to be directly updated when a delete occured?</p>
  
  <p>Thanks.</p>
  
  <hr>
  
  <p>UPDATE</p>
  
  <pre><code>public class VehicleContext : DbContext
  {
      public VehicleContext()
          : base("name=DefaultConnection")
      {
      }
  
      public DbSet&lt;VehicleModel&gt; Vehicles { get; set; }
  }
  </code></pre>