title: How to set Entity framework 4 CommandTimeout in connection string?
body: <p>Is it possible to specify commandTimeout in connection string in app.config?</p>
  
  <p>According to this SO question: <a href="https://stackoverflow.com/questions/1718739/entity-framework-with-mysql-timeout-expired-while-generating-model">Entity Framework with MySQL - Timeout Expired while Generating Model</a> the following should work:</p>
  
  <pre><code>  &lt;add name="DataEntities" connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=XXXX;initial catalog=XXXXX2;persist security info=True;user id=XXXXX;password=XXXXX;multipleactiveresultsets=True;App=EntityFramework;Default Command Timeout=12;&amp;quot;" providerName="System.Data.EntityClient" /&gt;
  </code></pre>
  
  <p>However, it does not work - exception is thrown saying that <code>Default Command Timeout</code> is not known part of connection string. </p>
  
  <p>If I do this directly in code using the following code, it works fine:</p>
  
  <pre><code>        var db = new DataEntities(); // ObjectContext
          db.CommandTimeout = 1;
  </code></pre>
  
  <p>Does anybody know how to set the commandTimeout using connectionstring or other native option in config? </p>
  
  <p>Thank you.</p>