title: Updating model in Entity Framework removes timeout
body: <p>In my database model (<code>.edmx</code> file -> <code>mySource.Context.tt</code> -> <code>mySource.Context.cs</code>) I have set timeout to a certain value, but when I update my model (update from DB) it removes my <code>((IObjectContextAdapter)this).ObjectContext.CommandTimeout = 300;</code> entry, because this file is automatically populated.</p>
  
  <p>Is there a way every time I update my entity model that it puts the aforementioned timeout code back in?</p>
  
  <p>I'm considering creating a unit test to fail when this code is removed, but I would rather be a bit more proactive and prevent it from occurring.</p>
  
  <pre><code>public myEntities() : base("name=myEntities")
  {
      ((IObjectContextAdapter)this).ObjectContext.CommandTimeout = 300;     
      // Set timeout to 5 minutes
  }
  </code></pre>